aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-07-02 15:47:59 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2025-07-02 15:48:02 -0400
commitfe05430ace8e0b3c945cf581564458a5983a07b6 (patch)
treefa65f646f5115339564ac2826eafb57ca5cb3b31 /src/backend/access/gist/gistutil.c
parent0c2b7174c362d3092eb7eabf0117a8d47c64ce0e (diff)
downloadpostgresql-fe05430ace8e0b3c945cf581564458a5983a07b6.tar.gz
postgresql-fe05430ace8e0b3c945cf581564458a5983a07b6.zip
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 seemingly has no great ill effects if it should have been CHT_UNIX_SOCKET instead, but if it should have been CHT_HOST_ADDRESS then a null-pointer dereference will occur when the cancelConn is used. Bug: #18974 Reported-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.org Backpatch-through: 17
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions