https://issues.apache.org/bugzilla/show_bug.cgi?id=53823
Priority: P2
Bug ID: 53823
Assignee: [email protected]
Summary: [patch] pure IPv6 only host fix (server/config.c)
Severity: normal
Classification: Unclassified
OS: FreeBSD
Reporter: [email protected]
Hardware: All
Status: NEW
Version: 2.2.22
Component: Core
Product: Apache httpd-2
On a machine with IPv6 only (no IPv4 build into kernel/userland) apache does
not start.
The issue and possible fix was reported on the FreeBSD Apache mailing list.
http://lists.freebsd.org/pipermail/freebsd-apache/2012-August/002836.html
--- ./server/config.c.orig 2010-10-07 18:56:54.000000000 +0200
+++ ./server/config.c 2012-09-03 21:23:31.000000000 +0200
@@ -1979,6 +1979,9 @@
/* NOT virtual host; don't match any real network interface */
rv = apr_sockaddr_info_get(&s->addrs->host_addr,
NULL, APR_INET, 0, 0, p);
+ if (rv != APR_SUCCESS)
+ rv = apr_sockaddr_info_get(&s->addrs->host_addr,
+ NULL, APR_INET6, 0, 0, p);
ap_assert(rv == APR_SUCCESS); /* otherwise: bug or no storage */
s->addrs->host_port = 0; /* matches any port */
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]