Re: Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c)

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Ranier Vilela <ranier.vf@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-06-17T13:42:08Z
Lists: pgsql-hackers
> On 17 Jun 2025, at 15:40, Ranier Vilela <ranier.vf@gmail.com> wrote:

> In the function *PQcancelCreate* there is a copy-and-past thinko.
> The pointer that must be checked is cancelConn.
> 
> Trivial patch attached.

Nice catch, will fix.

--
Daniel Gustafsson




Commits

  1. Fix allocation check to test the right variable