bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in gethostbyname_r?


From: Greg Herlein
Subject: bug in gethostbyname_r?
Date: Fri, 13 Oct 2000 10:42:54 -0700 (PDT)

I suspect a bug in the gethostbyname_r function in glibc.  I have
attached test code that demonstrates that using the normal
(non-reentrant) gethostbyname all is well, but using
gethostbyname_r fails.

I will try to dig into the library code itself as time allow, but
wanted to bring this issue to light.

I'm running on a stock SuSE linux 6.2 box with libc.so.6.

Is it me, or should this code work fine?

Greg

/**************************************************************
Greg Herlein                                   address@hidden
Herlein Engineering                             www.herlein.com
***************************************************************/

Attachment: test.c
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]