From 9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 3 Dec 2013 11:11:56 -0500 Subject: libpq: change PQconndefaults() to ignore invalid service files Previously missing or invalid service files returned NULL. Also fix pg_upgrade to report "out of memory" for a null return from PQconndefaults(). Patch by Steve Singer, rewritten by me --- src/interfaces/libpq/fe-auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces/libpq/fe-auth.c') diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 975f7958d11..979714055e3 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -982,7 +982,7 @@ pg_fe_sendauth(AuthRequest areq, PGconn *conn) * if there is an error, return NULL with an error message in errorMessage */ char * -pg_fe_getauthname(PQExpBuffer errorMessage) +pg_fe_getauthname(void) { const char *name = NULL; char *authn; -- cgit v1.2.3