From 0703079cef45942af51db9ebed17742f75dcdef2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 18 May 2009 16:15:22 +0000 Subject: [PATCH] Make pwdfMatchesString() a little more careful about matching * fields. --- src/interfaces/libpq/fe-connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index fec387f59a..7f4ae4c52d 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -3779,7 +3779,7 @@ pwdfMatchesString(char *buf, char *token) return NULL; tbuf = buf; ttok = token; - if (*tbuf == '*') + if (tbuf[0] == '*' && tbuf[1] == ':') return tbuf + 2; while (*tbuf != 0) { -- 2.39.5