Skip to content

Commit 2c39ab1

Browse files
committed
Make pwdfMatchesString() a little more careful about matching * fields.
1 parent 939a40b commit 2c39ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.373 2009/04/24 09:43:10 mha Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.374 2009/05/18 16:15:22 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -3779,7 +3779,7 @@ pwdfMatchesString(char *buf, char *token)
37793779
return NULL;
37803780
tbuf = buf;
37813781
ttok = token;
3782-
if (*tbuf == '*')
3782+
if (tbuf[0] == '*' && tbuf[1] == ':')
37833783
return tbuf + 2;
37843784
while (*tbuf != 0)
37853785
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy