Skip to content
Snippets Groups Projects
Commit 835cc113 authored by Tom Lane's avatar Tom Lane
Browse files

Fix typo in initdb's SCRAM password processing.

Noted by Coverity (a rather impressive catch).

Michael Paquier
parent 5d3f7c57
Branches
Tags
No related merge requests found
......@@ -2331,7 +2331,7 @@ check_need_password(const char *authmethodlocal, const char *authmethodhost)
strcmp(authmethodlocal, "scram") == 0) &&
(strcmp(authmethodhost, "md5") == 0 ||
strcmp(authmethodhost, "password") == 0 ||
strcmp(authmethodlocal, "scram") == 0) &&
strcmp(authmethodhost, "scram") == 0) &&
!(pwprompt || pwfilename))
{
fprintf(stderr, _("%s: must specify a password for the superuser to enable %s authentication\n"), progname,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment