summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2011-04-02 22:05:42 +0000
committerTom Lane2011-04-02 22:05:42 +0000
commitd518d6a168797c2e3b9cf03a3b5cfa335be735bb (patch)
tree239e8dc95eb0720a1c96970c8532c6f9b25a715a
parentd420ba2a2d4ea4831f89a3fd7ce86b05eff932ff (diff)
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.c2
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;
}
/*