From a5bcc9f96bf56121a0704433c12137a43cd093be Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 7 Feb 2014 15:53:32 -0500 Subject: [PATCH] auth: Fixed crash/NULL error if auth_verbose_passwords had an invalid value. --- src/auth/auth-settings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.47.3