ct_cancel segfault

richard at iguana.co.nz richard at iguana.co.nz
Thu Dec 16 23:00:59 EST 1999


php4 calls ct_cancel with a NULL connection and a valid cmd structure.
Freetds does not validate the connection pointer and segfaults. Simple
fix, on first line of ct_cancel add:

if (!conn) { conn = cmd->con; }

Richard.
(Fixes a LOT of problems with php4)




More information about the FreeTDS mailing list