httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53823] New: [patch] pure IPv6 only host fix (server/config.c)
Date Mon, 03 Sep 2012 19:26:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53823

          Priority: P2
            Bug ID: 53823
          Assignee: bugs@httpd.apache.org
           Summary: [patch] pure IPv6 only host fix (server/config.c)
          Severity: normal
    Classification: Unclassified
                OS: FreeBSD
          Reporter: ohauer@gmx.de
          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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message