mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user