Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d420ba2
)
Fix typo in PQconnectStartParams().
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 2 Apr 2011 22:05:42 +0000
(18:05 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 2 Apr 2011 22:05:42 +0000
(18:05 -0400)
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
src/interfaces/libpq/fe-connect.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/fe-connect.c
b/src/interfaces/libpq/fe-connect.c
index a4959ee22ec05541c50f40c0f221fd38230605da..aa24c37f9c4b7230f452fe8d6028a60de055dd31 100644
(file)
--- 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
;
}
/*