]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fixed crash/NULL error if auth_verbose_passwords had an invalid value.
authorTimo Sirainen <tss@iki.fi>
Fri, 7 Feb 2014 20:53:32 +0000 (15:53 -0500)
committerTimo Sirainen <tss@iki.fi>
Fri, 7 Feb 2014 20:53:32 +0000 (15:53 -0500)
src/auth/auth-settings.c

index 3ebb70a847f1aa83f49e1b1b838dd82ed5332032..586ee138c49e7bdbb2318e2ce17684fc69078aff 100644 (file)
@@ -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,