summaryrefslogtreecommitdiffstats
path: root/src/backend/libpq/auth.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/backend/libpq/auth.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index efc53f3..235152e 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -850,15 +850,13 @@ CheckPWChallengeAuth(Port *port, const char **logdetail)
if (shadow_pass)
pfree(shadow_pass);
-
- /*
- * If get_role_password() returned error, return error, even if the
- * authentication succeeded.
- */
- if (!shadow_pass)
+ else
{
+ /*
+ * If get_role_password() returned error, authentication better not
+ * have succeeded.
+ */
Assert(auth_result != STATUS_OK);
- return STATUS_ERROR;
}
if (auth_result == STATUS_OK)