diff options
author | Bruce Momjian | 2013-12-03 16:11:56 +0000 |
---|---|---|
committer | Bruce Momjian | 2013-12-03 16:12:25 +0000 |
commit | 9e0a97f1c8316e36fa4a8626e0a60792b0fb0c2e (patch) | |
tree | 659c15fa695ca0fc7ccbedde530ea54ead06e2f2 /src/interfaces/libpq/fe-auth.c | |
parent | 95e3d50539afcdcd4b75b4ac5baa9f8fc05324d9 (diff) |
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
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r-- | src/interfaces/libpq/fe-auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |