From: Timo Sirainen Date: Fri, 7 Feb 2014 20:53:32 +0000 (-0500) Subject: auth: Fixed crash/NULL error if auth_verbose_passwords had an invalid value. X-Git-Tag: 2.2.11~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5bcc9f96bf56121a0704433c12137a43cd093be;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed crash/NULL error if auth_verbose_passwords had an invalid value. --- diff --git a/src/auth/auth-settings.c b/src/auth/auth-settings.c index 3ebb70a847..586ee138c4 100644 --- a/src/auth/auth-settings.c +++ b/src/auth/auth-settings.c @@ -351,8 +351,10 @@ auth_verify_verbose_password(const struct auth_settings *set, return TRUE; else if (strcmp(value, "sha1") == 0) return TRUE; - else + else { + *error_r = "auth_verbose_passwords: Invalid value"; return FALSE; + } } static bool auth_settings_check(void *_set, pool_t pool,