INN 2.3.1 cant get hostbyaddr bug
Jeffrey M. Vinocur
jeff at litech.org
Mon Mar 12 16:53:49 UTC 2001
On Mon, 12 Mar 2001, Oleg Gawriloff wrote:
> accroding to man gethostbyaddr and netdbm.h if gethostbyaddr returns 0 it
> means success.
Err, are you sure about that?
Linux GETHOSTBYNAME(3):
RETURN VALUE
The gethostbyname() and gethostbyaddr() functions return
the hostent structure or a NULL pointer if an error
occurs. On error, the h_errno variable holds an error
number.
OpenBSD GETHOSTBYNAME(3):
DIAGNOSTICS
Error return status from gethostbyname(), gethostbyname2(), and
gethostbyaddr() is indicated by return of a null pointer. The external
integer h_errno may then be checked to see whether this is a temporary
failure or an invalid or unknown host.
--
Jeffrey M. Vinocur
jeff at litech.org
More information about the inn-bugs
mailing list