Skip to content

Commit 672def6

Browse files
committed
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
1 parent 7b99cfb commit 672def6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ PQconnectStartParams(const char **keywords,
446446
{
447447
conn->status = CONNECTION_BAD;
448448
/* errorMessage is already set */
449-
return false;
449+
return conn;
450450
}
451451

452452
/*

0 commit comments

Comments
 (0)