Mercurial > dovecot > original-hg > dovecot-1.2
diff src/auth/auth-request-handler.c @ 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 | b9faf4db2a9f |
children | 00cd9aacd03c |
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 {