diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-02 18:05:42 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-02 18:05:42 -0400 |
commit | d518d6a168797c2e3b9cf03a3b5cfa335be735bb (patch) | |
tree | 239e8dc95eb0720a1c96970c8532c6f9b25a715a | |
parent | d420ba2a2d4ea4831f89a3fd7ce86b05eff932ff (diff) | |
download | postgresql-d518d6a168797c2e3b9cf03a3b5cfa335be735bb.tar.gz postgresql-d518d6a168797c2e3b9cf03a3b5cfa335be735bb.zip |
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
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index a4959ee22ec..aa24c37f9c4 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -491,7 +491,7 @@ PQconnectStartParams(const char **keywords, { conn->status = CONNECTION_BAD; /* errorMessage is already set */ - return false; + return conn; } /* |