Fix copy-paste mistake in PQcancelCreate
authorAlvaro Herrera <[email protected]>
Mon, 1 Jul 2024 11:58:22 +0000 (13:58 +0200)
committerAlvaro Herrera <[email protected]>
Mon, 1 Jul 2024 11:58:22 +0000 (13:58 +0200)
commit6d2ac554911d874e4d0609f5b2c5f34a1226ee0c
tree815cc608ca177343dccdd1e38194c6bdf57fdde9
parent0f934b0739ad28e8e20d8ad22ca80538544ce28a
Fix copy-paste mistake in PQcancelCreate

When an OOM occurred, this function was incorrectly setting a status of
CONNECTION_BAD on the passed in PGconn instead of on the newly created
PGcancelConn.

Mistake introduced with 61461a300c1c.  Backpatch to 17.

Author: Jelte Fennema-Nio <[email protected]>
Reported-by: Noah Misch <[email protected]>
Discussion: https://postgr.es/m/20240630190040[email protected]
src/interfaces/libpq/fe-cancel.c