- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit5d08000
committed
Correctly copy the target host identification in PQcancelCreate.
PQcancelCreate failed to copy struct pg_conn_host's "type" field,instead leaving it zero (a/k/a CHT_HOST_NAME). This seeminglyhas no great ill effects if it should have been CHT_UNIX_SOCKETinstead, but if it should have been CHT_HOST_ADDRESS then anull-pointer dereference will occur when the cancelConn is used.Bug: #18974Reported-by: Maxim Boguk <maxim.boguk@gmail.com>Author: Sergei Kornilov <sk@zsrv.org>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/18974-575f02b2168b36b3@postgresql.orgBackpatch-through: 171 parent4938737 commit5d08000
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments
Comments
(0)