[uClibc]getaddrinfo bug

Ronald Wahl rwa at peppercon.com
Tue Jun 17 09:51:19 UTC 2003


On Fri, 6 Jun 2003 14:36:44 -0600, Erik Andersen wrote:

> On Wed Jun 04, 2003 at 03:57:26PM +0200, Ronald Wahl wrote:
>> Hi,
>> 
>> I found a bug in getaddrinfo (uClibc 0.9.19):
>> 
>> The following little test program fails with "System Error". Removing
>> AI_CANONNAME from hints.ai_flags works. But getaddrinfo should work in
>> both cases AFAIK. Glibc even works if only AI_CANONNAME is specified but
>> I dont know if this is the right behavior. Any fix for this?

> I just tried this, but I'm not seeing any errors...

It works only if the requested IP is registered in /etc/hosts. If not
then a "System error" occurs. Glibc has not this limitation.

- ron


More information about the uClibc mailing list