Skip to content

Commit a5bcc9f

Browse files
committed
auth: Fixed crash/NULL error if auth_verbose_passwords had an invalid value.
1 parent 29ba468 commit a5bcc9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/auth/auth-settings.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,10 @@ auth_verify_verbose_password(const struct auth_settings *set,
351351
return TRUE;
352352
else if (strcmp(value, "sha1") == 0)
353353
return TRUE;
354-
else
354+
else {
355+
*error_r = "auth_verbose_passwords: Invalid value";
355356
return FALSE;
357+
}
356358
}
357359

358360
static bool auth_settings_check(void *_set, pool_t pool,

0 commit comments

Comments
 (0)