From: Timo Sirainen Date: Sat, 26 Oct 2013 15:07:45 +0000 (+0300) Subject: auth: Fixed crash with auth_verbose_passwords!=no and non-plaintext auth X-Git-Tag: 2.2.7~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6f302e49ed0df9b07f020f462b24def023ba7aa;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed crash with auth_verbose_passwords!=no and non-plaintext auth --- diff --git a/src/auth/auth-request.c b/src/auth/auth-request.c index f250bfc688..2982b9cc5f 100644 --- a/src/auth/auth-request.c +++ b/src/auth/auth-request.c @@ -1783,6 +1783,9 @@ auth_request_append_password(struct auth_request *request, string_t *str) const char *p, *log_type = request->set->verbose_passwords; unsigned int max_len = 1024; + if (request->mech_password == NULL) + return; + p = strchr(log_type, ':'); if (p != NULL) { if (str_to_uint(p+1, &max_len) < 0)