changeset 9960:aaf93388d061 HEAD

imap proxy: Don't fail if LOGIN parameters were sent using literals.
author Timo Sirainen <tss@iki.fi>
date Wed, 30 Sep 2009 19:14:01 -0400
parents 80472a77d765
children 22f1076b3d03
files src/imap-login/imap-proxy.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	} 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;