bug-gnulib
[Top][All Lists]
Advanced

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

Re: canon-host errors


From: Derek Price
Subject: Re: canon-host errors
Date: Sun, 04 Sep 2005 18:50:48 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Hrm.  The POSIX getaddrinfo specification is pretty clear about *not*
resolving a name for ai_canonname if name is in IP dot notation, yet
sometimes the canon-host implemetation does a reverse-lookup to get a
canonical name (for some odd condition where gethostbyname fills in the
h_name field of the hostent struct with an IP address in dot notation).

Does anyone actually know a system or set of circumstances where
gethostbyname might actually return an IP number in dot notation when it
is not given an IP number to resolve?  There is some old code in CVS
that implies that this should not happen, but the code path may be
seldom-used since it has to do with Kerberos authentication.

Regards,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>






reply via email to

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