cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Tru64 problems (was Re: Persistant Connections testing)

From: Dimitris Sarris <dsar_at_intracom.gr>
Date: Thu, 29 Nov 2001 09:13:46 +0200

Daniel Stenberg wrote:

> On Wed, 28 Nov 2001, Dimitris Sarris wrote:
>
> > No, it now crashes before a call to "fputs", inside the "Curl_infof"
> > function. I believe that there is a memory violation bug hidden in your
> > code.
>
> Hey, if the larger array makes no difference, I got another suggestion that
> apparently the Tru64 man page on gethostbyaddr_r() says that the hostent
> struct must be filled with zeroes before the call to gethostbyaddr_r().
>
> So if you could try to add this before the gethostbyaddr_r() call:
>
> memset(hostent_buf, 0, sizeof(struct hostent));

I have not tested it thourougly, but I believe that the bug is fixed now (no
crashes).
I believe that both patches must be applied (increased size of hostend_buf,
zero of hostent_buf).

Thanks again,
Dimitris
Received on 2001-11-29