Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 835cc11

Browse files
committed
Fix typo in initdb's SCRAM password processing.
Noted by Coverity (a rather impressive catch). Michael Paquier
1 parent 5d3f7c5 commit 835cc11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2331,7 +2331,7 @@ check_need_password(const char *authmethodlocal, const char *authmethodhost)
23312331
strcmp(authmethodlocal, "scram") == 0) &&
23322332
(strcmp(authmethodhost, "md5") == 0 ||
23332333
strcmp(authmethodhost, "password") == 0 ||
2334-
strcmp(authmethodlocal, "scram") == 0) &&
2334+
strcmp(authmethodhost, "scram") == 0) &&
23352335
!(pwprompt || pwfilename))
23362336
{
23372337
fprintf(stderr, _("%s: must specify a password for the superuser to enable %s authentication\n"), progname,

0 commit comments

Comments
 (0)