DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30066>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30066 HostnameLookups fails with apache 2.0.50 on FreeBSD 4.9-STABLE Summary: HostnameLookups fails with apache 2.0.50 on FreeBSD 4.9- STABLE Product: Apache httpd-2.0 Version: 2.0.50 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] When configured with "--enable-v4-mapped" option, "HostnameLookups On" does not work well on FreeBSD 4.9-STABLE. This is caused by the fail of getnameinfo() in srclib/apr/network_io/unix/sockaddr.c:616, I guess. The first argument of getnameinfo() should have proper sa_len (or sin_len) field value by itself, so applying the following patch can solve the problem. *** srclib/apr/network_io/unix/sockaddr.c.orig Mon May 24 20:27:45 2004 --- srclib/apr/network_io/unix/sockaddr.c Tue Jul 13 16:54:01 2004 *************** *** 612,617 **** --- 612,618 ---- struct sockaddr_in tmpsa; tmpsa.sin_family = AF_INET; tmpsa.sin_addr.s_addr = ((apr_uint32_t *)sockaddr->ipaddr_ptr)[3]; + tmpsa.sin_len = sizeof(tmpsa); rc = getnameinfo((const struct sockaddr *)&tmpsa, sizeof(tmpsa), tmphostname, sizeof(tmphostname), NULL, 0, --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
