diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-01-28 03:42:27 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-01-28 03:42:27 +0000 |
commit | 8a02b22e89dacb292f4737e97d90c1a2c748b8b5 (patch) | |
tree | 4b8eedaa28d605e5bbab916e1b880a2e65e81646 | |
parent | 8abd4243695985623887ce29ecc937d05ead008c (diff) | |
download | postgresql-8a02b22e89dacb292f4737e97d90c1a2c748b8b5.tar.gz postgresql-8a02b22e89dacb292f4737e97d90c1a2c748b8b5.zip |
From: Peter T Mount <patches@maidast.demon.co.uk>
This has a problem when using any authentication other than trust or
ident.
Anything using libpq will hang, because the client will go into a loop
while connecting. The following patch simply comments out two lines (a do
and a while), removing the loop. Going through the new scheme, I can't see
why this do..while loop is in there.
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index ee95ac59de5..3ac229c5a82 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.59 1998/01/26 01:42:28 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.60 1998/01/28 03:42:27 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -584,7 +584,6 @@ connectDB(PGconn *conn) * authentication request. */ - do { int beresp; @@ -645,7 +644,6 @@ connectDB(PGconn *conn) conn->errorMessage) != STATUS_OK) goto connect_errReturn; } - while (areq != AUTH_REQ_OK); /* free the password so it's not hanging out in memory forever */ if (conn->pgpass != NULL) |