ct_con_props() patched
Mark Schaal
mark at champ.tstonramp.com
Tue Nov 30 16:16:30 EST 1999
There were three small bugs in ct_con_props(), one of which caused
DBD::Sybase to crash. A patch has been added to the CVS. Brian,
you might want to look at #3 to verify that it's correct.
(1) There was no 'break;' ending the CS_GET/CS_USERDATA case.
The fall-thru overwrote the output buffer, eventually causing
a segfault.
(2) The 'break;' in CS_GET/CS_BULK_LOGIN was before the memcpy().
(3) The CS_GET/CS_CON_STATUS was doing |= and &= on an unintialized
value. I initialized it to zero to be safe.
Things look good now - I'm getting the same results from DBD::Sybase
as from 0.47. Can't wait until I get a free moment to try the SYBTEXT
support.
Mark
--
Mark J. Schaal Phone: (909) 620-7724
TST On Ramp Fax: (909) 620-8174
System Administrator E-Mail: mark at tstonramp.com
More information about the FreeTDS
mailing list