Mercurial > dovecot > core-2.2
changeset 9562:90f8e2d091b5 HEAD
auth: Ignore empty initial response strings.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Jul 2009 13:25:01 -0400 |
parents | df84d8a0efbf |
children | 1cf278c2fd63 |
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 @@ -362,7 +362,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 {