Hi.
In the function *PQcancelCreate* there is a copy-and-past thinko.The pointer that must be checked is cancelConn.
Trivial patch attached.
best regards,Ranier Vilela