Minor compilation issue
the wharf rat
wrat at jump.net
Sat May 13 02:00:59 UTC 2000
Undefining DO_NNRP_GETHOSTBYADDR results in an undefined call
to Address2Name at nnrpd.c:442
*** nnrpd.c Fri May 12 06:06:52 2000
--- /home/wrat/nnrpd.c Fri May 12 19:18:46 2000
***************
*** 437,452 ****
--- 437,456 ----
if (getsockname(STDIN, (struct sockaddr *)&sin, &length) < 0) {
syslog(L_NOTICE, "%s can't getsockname %m", ClientHost);
Printf("%d Can't figure out where you connected to. Goodbye\r\n", NNTP_ACCESS_VAL);
ExitWithStats(1, TRUE);
}
+ #if defined(DO_NNRP_GETHOSTBYADDR)
if (!Address2Name(&sin.sin_addr, ServerHost, sizeof(ServerHost))) {
strcpy(ServerHost, inet_ntoa(sin.sin_addr));
syslog(L_NOTICE,
"? cant gethostbyaddr %s %m -- using IP address for access",
ClientHost);
}
+ #else
+ strcpy(ServerHost, inet_ntoa(sin.sin_addr));
+ #endif
}
strncpy (LogName,ClientHost,sizeof(LogName) - 1) ;
LogName[sizeof(LogName) - 1] = '\0';
More information about the inn-patches
mailing list