INN 2.3.1 cant get hostbyaddr bug
Oleg Gawriloff
barzog at telecom.by
Mon Mar 12 10:17:50 UTC 2001
When connecting to inn in log files I see the following string:
? cant gethostbyaddr 172.16.2.33 Undefined error: 0 -- using IP address for
access
accroding to man gethostbyaddr and netdbm.h if gethostbyaddr returns 0 it
means success. Further examination in nnrpd/nnrpd.c gives idea:
if (HostErrorStr == NULL) {
syslog(L_NOTICE,
"? cant gethostbyaddr %s %m -- using IP address for
access",
ClientHost);
} else {
syslog(L_NOTICE,
"? cant gethostbyaddr %s %s -- using IP address for
access",
ClientHost, HostErrorStr);
}
strings 457-465. Else branch here is ambigous.
WBR, Oleg Gawriloff.
More information about the inn-bugs
mailing list