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:
Tom Lane 2011-04-02 18:05:42 -04:00
parent d420ba2a2d
commit d518d6a168
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ PQconnectStartParams(const char **keywords,
{
conn->status = CONNECTION_BAD;
/* errorMessage is already set */
return false;
return conn;
}
/*