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

Ranier Vilela <ranier.vf@gmail.com>

From: Ranier Vilela <ranier.vf@gmail.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-06-17T13:54:45Z
Lists: pgsql-hackers

Attachments

Em ter., 17 de jun. de 2025 às 10:42, Daniel Gustafsson <daniel@yesql.se>
escreveu:

> > 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.
>
v1 attached, thanks.

best regards,
Ranier Vilela

Commits

  1. Fix allocation check to test the right variable