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

Commit 7a33578

Browse files
committed
From: Phil Thompson <phil@river-bank.demon.co.uk>
I haven't had final confirmation from Peter yet, but the attached patch needs to be applied for the Beta otherwise password and crypt authentication just won't work. It puts back the loop in libpq and also fixes a couple of problems with maintaining compatability with pre-6.3 drivers.
1 parent 93211b9 commit 7a33578

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.61 1998/01/29 03:24:30 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.62 1998/01/31 21:27:28 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -584,6 +584,7 @@ connectDB(PGconn *conn)
584584
* authentication request.
585585
*/
586586

587+
do
587588
{
588589
int beresp;
589590

@@ -644,6 +645,7 @@ connectDB(PGconn *conn)
644645
conn->errorMessage) != STATUS_OK)
645646
goto connect_errReturn;
646647
}
648+
while (areq != AUTH_REQ_OK);
647649

648650
/* free the password so it's not hanging out in memory forever */
649651
if (conn->pgpass != NULL)

0 commit comments

Comments
 (0)