Permalink
Browse files

auth: Fixed crash/NULL error if auth_verbose_passwords had an invalid…

… value.
  • Loading branch information...
sirainen committed Feb 7, 2014
1 parent 29ba468 commit a5bcc9f96bf56121a0704433c12137a43cd093be
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/auth/auth-settings.c
View
@@ -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,

0 comments on commit a5bcc9f

Please sign in to comment.