dovecot-2.0: imap proxy: Don't fail if LOGIN parameters were sen...

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 1 02:14:10 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/aaf93388d061
changeset: 9960:aaf93388d061
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 30 19:14:01 2009 -0400
description:
imap proxy: Don't fail if LOGIN parameters were sent using literals.

diffstat:

1 file changed, 2 insertions(+), 5 deletions(-)
src/imap-login/imap-proxy.c |    7 ++-----

diffs (17 lines):

diff -r 80472a77d765 -r aaf93388d061 src/imap-login/imap-proxy.c
--- a/src/imap-login/imap-proxy.c	Wed Sep 30 17:50:56 2009 -0400
+++ b/src/imap-login/imap-proxy.c	Wed Sep 30 19:14:01 2009 -0400
@@ -157,11 +157,8 @@ int imap_proxy_parse_line(struct client 
 	} else if (*line == '+') {
 		/* AUTHENTICATE started. finish it. */
 		if (!imap_client->proxy_wait_auth_continue) {
-			client_log_err(client, t_strdup_printf(
-				"proxy: Unexpected input: %s",
-				str_sanitize(line, 160)));
-			client_proxy_failed(client, TRUE);
-			return -1;
+			/* used literals with LOGIN command, just ignore. */
+			return 0;
 		}
 		imap_client->proxy_wait_auth_continue = FALSE;
 


More information about the dovecot-cvs mailing list