diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-07-02 15:47:59 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-07-02 15:47:59 -0400 |
commit | 445bd37b19c297b56a7e3b24a69b3648918d2c31 (patch) | |
tree | 0e0b6b8023a8dca639ebfc46dbf0b9b43104305e /src/backend/utils/adt/xml.c | |
parent | 792238c8b4a1943e91485fa7dac1959f23a9ac1d (diff) |
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/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions