dovecot-1.2: imap proxy: Don't fail if LOGIN parameters were sen...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 1 01:36:58 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/8e8a706d6905
changeset: 9404:8e8a706d6905
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 30 18:36:50 2009 -0400
description:
imap proxy: Don't fail if LOGIN parameters were sent using literals.
diffstat:
1 file changed, 4 insertions(+), 7 deletions(-)
src/imap-login/imap-proxy.c | 11 ++++-------
diffs (22 lines):
diff -r cf291558ce28 -r 8e8a706d6905 src/imap-login/imap-proxy.c
--- a/src/imap-login/imap-proxy.c Wed Sep 30 17:07:12 2009 -0400
+++ b/src/imap-login/imap-proxy.c Wed Sep 30 18:36:50 2009 -0400
@@ -221,14 +221,11 @@ static int proxy_input_line(struct imap_
}
return 0;
} else if (*line == '+') {
+ if (!client->proxy_wait_auth_continue) {
+ /* used literals with LOGIN command, just ignore. */
+ return 0;
+ }
/* AUTHENTICATE started. finish it. */
- if (!client->proxy_wait_auth_continue) {
- client_syslog_err(&client->common, t_strdup_printf(
- "proxy: Unexpected input: %s",
- str_sanitize(line, 160)));
- proxy_failed(client, TRUE);
- return -1;
- }
client->proxy_wait_auth_continue = FALSE;
str = t_str_new(128);
More information about the dovecot-cvs
mailing list