1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00
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.
This commit is contained in:
Marc G. Fournier
1998-01-31 20:14:15 +00:00
parent f1f01a70f9
commit 93211b9170
4 changed files with 60 additions and 39 deletions

View File

@ -271,7 +271,7 @@ int crypt_verify(Port* port, const char* user, const char* pgpass) {
if (!strcmp(pgpass, crypt_pwd)) {
/* check here to be sure we are not past valuntil
*/
if (!valuntil)
if (!valuntil || strcmp(valuntil, "\\N") == 0)
vuntil = INVALID_ABSTIME;
else
vuntil = nabstimein(valuntil);