changeset 9189:ee173ea99ea6 HEAD

auth: Ignore empty initial response strings.
author Timo Sirainen <tss@iki.fi>
date Tue, 07 Jul 2009 13:25:01 -0400
parents 8f8b5e2f8df7
children dff7312629a7
files src/auth/auth-request-handler.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		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 {