changeset 9404:8e8a706d6905 HEAD

imap proxy: Don't fail if LOGIN parameters were sent using literals.
author Timo Sirainen <tss@iki.fi>
date Wed, 30 Sep 2009 18:36:50 -0400
parents cf291558ce28
children 9a8c565adbe1
files src/imap-login/imap-proxy.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		}
 		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);