aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-01-31 21:27:28 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-01-31 21:27:28 +0000
commit7a335784363b7447d1da26b11878f8e105f9fbca (patch)
tree87cc76c3f8b7f3edc9adcfcadf6b998cff8a3ac5 /src
parent93211b9170d463a9224fb45916847f0baa53f99d (diff)
downloadpostgresql-7a335784363b7447d1da26b11878f8e105f9fbca.tar.gz
postgresql-7a335784363b7447d1da26b11878f8e105f9fbca.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index bc7d3b3b200..f9d856d207a 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.61 1998/01/29 03:24:30 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.62 1998/01/31 21:27:28 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -584,6 +584,7 @@ connectDB(PGconn *conn)
* authentication request.
*/
+ do
{
int beresp;
@@ -644,6 +645,7 @@ 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)