From 4f2248a8a70985c7295afc3bf91c848e81d740d9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 7 Jul 2009 13:25:01 -0400 Subject: [PATCH] auth: Ignore empty initial response strings. --HG-- branch : HEAD --- src/auth/auth-request-handler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/auth/auth-request-handler.c b/src/auth/auth-request-handler.c index 7e30470a6c..20956f5cea 100644 --- a/src/auth/auth-request-handler.c +++ b/src/auth/auth-request-handler.c @@ -362,7 +362,10 @@ bool auth_request_handler_auth_begin(struct auth_request_handler *handler, 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 { -- 2.47.3