]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fixed crash with auth_verbose_passwords!=no and non-plaintext auth
authorTimo Sirainen <tss@iki.fi>
Sat, 26 Oct 2013 15:07:45 +0000 (18:07 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 26 Oct 2013 15:07:45 +0000 (18:07 +0300)
src/auth/auth-request.c

index f250bfc688dbff62f40d52d7f1bbfd6bd48f4116..2982b9cc5f56c41e0a14ef00fbfcc2271423a757 100644 (file)
@@ -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)