Commit 424e4332 authored by Marc G. Fournier's avatar Marc G. Fournier

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
parent 7fae4365
...@@ -7,7 +7,7 @@ ...@@ -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) ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment