Skip to Content.
Sympa Menu

freetds - Re: Fix core dump after message handle

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Fix core dump after message handle
  • Date: Tue, 16 Jul 2002 13:34:42 -0400 (EDT)


Thanks freddy,

I actually missed the memset which should have been there, that way if we
expand msg_info we don't have to go back and touch all the initialization
code. I've been a bit sloppy lately, time crunch I suppose.

Brian

On Tue, 16 Jul 2002, ZIGLIO Frediano wrote:

> 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."
>
> =================================
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>





Archive powered by MHonArc 2.6.24.

Top of Page