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
This commit is contained in:
Marc G. Fournier 1997-03-25 00:54:15 +00:00
parent 7fae43654b
commit 424e43326b
1 changed files with 8 additions and 9 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.10 1997/03/18 21:46:31 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.11 1997/03/25 00:54:15 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -438,14 +438,13 @@ be_recvauth(MsgType msgtype_arg, Port *port, char *username, StartupInfo* sp)
what used to be the only choice, but installation may choose "hba" what used to be the only choice, but installation may choose "hba"
instead. instead.
*/ */
if (msgtype_arg != STARTUP_KRB4_MSG && msgtype_arg != STARTUP_KRB5_MSG) { if (msgtype_arg == STARTUP_MSG) {
if (msgtype_arg == STARTUP_MSG && useHostBasedAuth) if(useHostBasedAuth)
msgtype = STARTUP_HBA_MSG; msgtype = STARTUP_HBA_MSG;
else else
msgtype = STARTUP_UNAUTH_MSG; msgtype = STARTUP_UNAUTH_MSG;
} else { } else
msgtype = msgtype_arg; msgtype = msgtype_arg;
}
if (!username) { if (!username) {