Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 424e433

Browse files
committed
I don't know whether this breaks what the previous person tried to
fix, but figure I"ll know soon enough, eh? Patch submitted by Dan McGuirk
1 parent 7fae436 commit 424e433

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/backend/libpq/auth.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.10 1997/03/18 21:46:31 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.11 1997/03/25 00:54:15 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -438,14 +438,13 @@ be_recvauth(MsgType msgtype_arg, Port *port, char *username, StartupInfo* sp)
438438
what used to be the only choice, but installation may choose "hba"
439439
instead.
440440
*/
441-
if (msgtype_arg != STARTUP_KRB4_MSG && msgtype_arg != STARTUP_KRB5_MSG) {
442-
if (msgtype_arg == STARTUP_MSG && useHostBasedAuth)
443-
msgtype = STARTUP_HBA_MSG;
444-
else
445-
msgtype = STARTUP_UNAUTH_MSG;
446-
} else {
447-
msgtype = msgtype_arg;
448-
}
441+
if (msgtype_arg == STARTUP_MSG) {
442+
if(useHostBasedAuth)
443+
msgtype = STARTUP_HBA_MSG;
444+
else
445+
msgtype = STARTUP_UNAUTH_MSG;
446+
} else
447+
msgtype = msgtype_arg;
449448

450449

451450
if (!username) {

0 commit comments

Comments
 (0)