From: Dmitry Y. <di...@us...> - 2010-03-21 13:15:26
|
Build Version : T3.0.0.28023 Firebird 3.0 Unstable (writeBuildNum.sh,v 1.28198 2010/03/21 13:15:17 dimitr Exp ) Update of /cvsroot/firebird/firebird2/src/remote In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv18119 Modified Files: interface.cpp Log Message: Fixed the client side crash when error is returned from the server during attaching. Index: interface.cpp =================================================================== RCS file: /cvsroot/firebird/firebird2/src/remote/interface.cpp,v retrieving revision 1.242 retrieving revision 1.243 diff -b -U3 -r1.242 -r1.243 --- interface.cpp 21 Mar 2010 13:11:55 -0000 1.242 +++ interface.cpp 21 Mar 2010 13:15:16 -0000 1.243 @@ -5802,6 +5802,7 @@ // send answer (may be empty) to server packet->p_operation = op_trusted_auth; d = &packet->p_trau.p_trau_data; + d->cstr_allocated = 0; // violate constness here safely - send operation does not modify data currentInstance->getData(const_cast<const unsigned char**>(&d->cstr_address), &d->cstr_length); |