From: Christophe Jaillet Date: Tue, 3 Sep 2013 04:49:20 +0000 (+0000) Subject: mod_status, mod_echo: Fix the display of client addresses. They were truncated to... X-Git-Tag: 2.5.0-alpha~5110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ce3b9a4ef17c16b7f26d24c7a8beefcd21a2aae;p=apache mod_status, mod_echo: Fix the display of client addresses. They were truncated to 31 characters which is not enough for IPv6 addresses. PR 54848 [Bernhard Schmidt ] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1519556 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 1aba6899d4..0b1418cb6f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_status, mod_echo: Fix the display of client addresses. + They were truncated to 31 characters which is not enough for IPv6 addresses. + PR 54848 [Bernhard Schmidt ] + *) mod_lua: If the first yield() of a LuaOutputFilter returns a string, it should be prefixed to the response as documented. [Eric Covener] diff --git a/include/scoreboard.h b/include/scoreboard.h index 393cbe9f29..d2be9c87a7 100644 --- a/include/scoreboard.h +++ b/include/scoreboard.h @@ -112,7 +112,7 @@ struct worker_score { #ifdef HAVE_TIMES struct tms times; #endif - char client[32]; /* Keep 'em small... */ + char client[40]; /* Keep 'em small... but large enough to hold an IPv6 address */ char request[64]; /* We just want an idea... */ char vhost[32]; /* What virtual host is being accessed? */ };