dovecot-2.0: auth: Ignore empty initial response strings.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 7 20:25:15 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/90f8e2d091b5
changeset: 9562:90f8e2d091b5
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 07 13:25:01 2009 -0400
description:
auth: Ignore empty initial response strings.

diffstat:

1 file changed, 4 insertions(+), 1 deletion(-)
src/auth/auth-request-handler.c |    5 ++++-

diffs (15 lines):

diff -r df84d8a0efbf -r 90f8e2d091b5 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c	Tue Jul 07 13:20:24 2009 -0400
+++ b/src/auth/auth-request-handler.c	Tue Jul 07 13:25:01 2009 -0400
@@ -362,7 +362,10 @@ bool auth_request_handler_auth_begin(str
 		return TRUE;
 	}
 
-	if (initial_resp == NULL) {
+	/* Empty initial response is a "=" base64 string. Completely empty
+	   string shouldn't really be sent, but at least Exim does it,
+	   so just allow it for backwards compatibility.. */
+	if (initial_resp == NULL || *initial_resp == '\0') {
 		initial_resp_data = NULL;
 		initial_resp_len = 0;
 	} else {


More information about the dovecot-cvs mailing list