patch to apache for IPv6 only httpd
ohauer at FreeBSD.org
Sun Aug 12 22:57:37 UTC 2012
On 2012-08-13 00:27, Philip M. Gollucci wrote:
> This needs to be sent back to dev at httpd.apache.org for upstream commit.
> This shouldn't be a permenant local
> fbsd patch.
OK, should I include the patch as extra patch if apache is build
with -DWITH_IPV6_V6ONLY ?
I can do this with the commit for the rewritten bsd.apache.mk.
But I full agree, the fix should go upstream.
> On Sun, Aug 12, 2012 at 6:25 PM, Olli Hauer <ohauer at freebsd.org> wrote:
>> On 2012-08-11 23:22, Curtis Villamizar wrote:
>>> This very simple patch prevents an assert when httpd is run on a
>>> server that has no IPv4 address. An example is a BSD jail running
>>> with only an IPv6 address on the interface (no loopback so no
>>> 127.0.0.1 address to bind to).
>>> Copy the patch below into the files directory as
>>> The port maintainer is on the Cc. No bug has been reported.
>>> BTW- I noticed this a long time ago. I don't remember if I reported
>>> it or forgot to. Appologies if this is a duplicate. It is not in the
>>> httpd-2.2.22.tar.bz2 tarball, in the distinfo dated 23 July 2012.
>>> --- ./server/config.c.orig 2010-10-07 09:56:54.000000000 -0700
>>> +++ ./server/config.c 2011-09-26 21:20:35.000000000 -0700
>>> @@ -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_UNSPEC, 0, 0, p);
>>> ap_assert(rv == APR_SUCCESS); /* otherwise: bug or no storage */
>>> s->addrs->host_port = 0; /* matches any port */
>> Hi Curtis,
>> Is this patch also relevant if apache22 was build with
>> -DWITH_IPV6_V6ONLY ?
>> freebsd-apache at freebsd.org mailing list
>> To unsubscribe, send any mail to "freebsd-apache-unsubscribe at freebsd.org"
More information about the freebsd-apache