From c7c68752c8856a73dad940e058ed9e2737bf9d10 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Wed, 1 Aug 2018 11:27:28 +0000 Subject: Fix PR54848 in a 2.4.x backportable format. Ideally deprecating the use of ->client in whatever version of 2.4 this is added into would be more logical. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837225 13f79535-47bb-0310-9956-ffa450edef68 --- modules/echo/mod_echo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/echo/mod_echo.c') diff --git a/modules/echo/mod_echo.c b/modules/echo/mod_echo.c index 336f90f3fa..c7f2a19d92 100644 --- a/modules/echo/mod_echo.c +++ b/modules/echo/mod_echo.c @@ -108,10 +108,10 @@ static int update_echo_child_status(ap_sb_handle_t *sbh, /* initial pass only, please - in the name of efficiency */ if (c) { - apr_cpystrn(ws->client, + apr_cpystrn(ws->client64, ap_get_remote_host(c, c->base_server->lookup_defaults, REMOTE_NOLOOKUP, NULL), - sizeof(ws->client)); + sizeof(ws->client64)); apr_cpystrn(ws->vhost, c->base_server->server_hostname, sizeof(ws->vhost)); /* Deliberate trailing space - filling in string on WRITE passes */ -- cgit v1.2.3