From: Tom Lane Date: Mon, 18 May 2009 16:15:22 +0000 (+0000) Subject: Make pwdfMatchesString() a little more careful about matching * fields. X-Git-Url: http://git.postgresql.org/gitweb/irc:/static/gitweb.js?a=commitdiff_plain;h=0703079cef45942af51db9ebed17742f75dcdef2;p=users%2Fsimon%2Fpostgres.git Make pwdfMatchesString() a little more careful about matching * fields. --- 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) {