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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/ee173ea99ea6
changeset: 9189:ee173ea99ea6
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 8f8b5e2f8df7 -r ee173ea99ea6 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
@@ -364,7 +364,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