mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
Fix typo in PQconnectStartParams().
This would lead to leaking the PGconn structure after an error detected by conninfo_array_parse(), as well as failing to return a useful error message in such cases. Backpatch to 9.0 where the error was introduced. Joseph Adams
This commit is contained in:
parent
7b99cfbe56
commit
672def6225
@ -446,7 +446,7 @@ PQconnectStartParams(const char **keywords,
|
||||
{
|
||||
conn->status = CONNECTION_BAD;
|
||||
/* errorMessage is already set */
|
||||
return false;
|
||||
return conn;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user