mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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:
		@@ -7,7 +7,7 @@
 | 
			
		||||
 *
 | 
			
		||||
 *
 | 
			
		||||
 * 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"
 | 
			
		||||
       instead.
 | 
			
		||||
       */
 | 
			
		||||
    if (msgtype_arg != STARTUP_KRB4_MSG && msgtype_arg != STARTUP_KRB5_MSG) {
 | 
			
		||||
        if (msgtype_arg == STARTUP_MSG && useHostBasedAuth)
 | 
			
		||||
            msgtype = STARTUP_HBA_MSG;
 | 
			
		||||
        else 
 | 
			
		||||
            msgtype = STARTUP_UNAUTH_MSG;
 | 
			
		||||
    } else {
 | 
			
		||||
            msgtype = msgtype_arg;
 | 
			
		||||
    }
 | 
			
		||||
    if (msgtype_arg == STARTUP_MSG) {
 | 
			
		||||
       if(useHostBasedAuth)
 | 
			
		||||
           msgtype = STARTUP_HBA_MSG;
 | 
			
		||||
       else
 | 
			
		||||
           msgtype = STARTUP_UNAUTH_MSG;
 | 
			
		||||
    } else
 | 
			
		||||
        msgtype = msgtype_arg;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    if (!username) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user