|
9 | 9 | * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group |
10 | 10 | * Portions Copyright (c) 1994, Regents of the University of California |
11 | 11 | * |
12 | | - * $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.46 2002/04/25 00:56:36 momjian Exp $ |
| 12 | + * $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.47 2002/06/15 00:52:23 momjian Exp $ |
13 | 13 | * |
14 | 14 | *------------------------------------------------------------------------- |
15 | 15 | */ |
@@ -52,13 +52,7 @@ md5_crypt_verify(const Port *port, const char *user, const char *pgpass) |
52 | 52 | } |
53 | 53 |
|
54 | 54 | if (passwd==NULL||*passwd=='\0') |
55 | | -{ |
56 | | -if (passwd) |
57 | | -pfree(passwd); |
58 | | -if (valuntil) |
59 | | -pfree(valuntil); |
60 | 55 | returnSTATUS_ERROR; |
61 | | -} |
62 | 56 |
|
63 | 57 | /* If they encrypt their password, force MD5 */ |
64 | 58 | if (isMD5(passwd)&&port->auth_method!=uaMD5) |
@@ -140,9 +134,6 @@ md5_crypt_verify(const Port *port, const char *user, const char *pgpass) |
140 | 134 | retval=STATUS_OK; |
141 | 135 | } |
142 | 136 |
|
143 | | -pfree(passwd); |
144 | | -if (valuntil) |
145 | | -pfree(valuntil); |
146 | 137 | if (port->auth_method==uaMD5) |
147 | 138 | pfree(crypt_pwd); |
148 | 139 |
|
|