Mercurial > dovecot > core-2.2
changeset 19338:308af6582495
auth: Avoid a crash by not trying to save empty delayed credentials.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 29 Oct 2015 14:09:52 +0200 |
parents | 8f198b569b01 |
children | 594cd05217eb |
files | src/auth/auth-request.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request.c Thu Oct 29 12:55:20 2015 +0200 +++ b/src/auth/auth-request.c Thu Oct 29 14:09:52 2015 +0200 @@ -810,7 +810,7 @@ if (!auth_request_handle_passdb_callback(&result, request)) { /* try next passdb */ if (request->skip_password_check && - request->delayed_credentials == NULL) { + request->delayed_credentials == NULL && size > 0) { /* passdb continue* rule after a successful lookup. remember these credentials and use them later on. */ unsigned char *dup;