Skip to Content.
Sympa Menu

freetds - ct_con_props() patched

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Mark Schaal <mark AT champ.tstonramp.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: ct_con_props() patched
  • Date: Tue, 30 Nov 1999 13:16:30 -0800 (PST)



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




Archive powered by MHonArc 2.6.24.

Top of Page