cURL / Mailing Lists / curl-library / Single Mail


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

From: Dimitris Sarris <>
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
I believe that both patches must be applied (increased size of hostend_buf,
zero of hostent_buf).

Thanks again,
Received on 2001-11-29