Skip to Content.
Sympa Menu

freetds - Fix core dump after message handle

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "Freetds (E-mail)" <freetds AT franklin.metalab.unc.edu>
  • Subject: Fix core dump after message handle
  • Date: Tue, 16 Jul 2002 17:54:56 +0200


proc_name was not initialized (but freed)

Index: src/tds/token.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/tds/token.c,v
retrieving revision 1.29
diff -u -r1.29 token.c
--- src/tds/token.c 16 Jul 2002 04:01:22 -0000 1.29
+++ src/tds/token.c 16 Jul 2002 15:53:17 -0000
@@ -1038,7 +1038,9 @@
msg_info.server=strdup("OpenClient");
msg_info.line_number=line;
msg_info.message=strdup(message);
+ msg_info.proc_name=NULL;
ret = tds_ctx->err_handler(tds_ctx, tds, &msg_info);
+ /* FIXME: reset message needed ??? */
/* message handler returned FAIL/CS_FAIL
** mark socket as dead */
if (ret) {

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page