Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d518d6a

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 d420ba2 commit d518d6a

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
@@ -491,7 +491,7 @@ PQconnectStartParams(const char **keywords,
491491
{
492492
conn->status = CONNECTION_BAD;
493493
/* errorMessage is already set */
494-
return false;
494+
return conn;
495495
}
496496

497497
/*

0 commit comments

Comments
 (0)