From: Jeff Trawick Date: Fri, 11 Jan 2002 13:38:28 +0000 (+0000) Subject: Fix a segfault in mod_rewrite's logging code caused by passing the X-Git-Tag: 2.0.31~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d78de7dc765737aec1c4ccfbc5cd68bc8de1aee2;p=apache Fix a segfault in mod_rewrite's logging code caused by passing the wrong config to ap_get_remote_host(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92827 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 3d4d04af28..5b3f8e3ba0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.31-dev + *) Fix a segfault in mod_rewrite's logging code caused by passing the + wrong config to ap_get_remote_host(). [Jeff Trawick] + *) Allow mod_cgid to work from a binary distribution install by using 755 for the permissions on the log directory instead of 750. [Jeff Trawick] diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 254e814996..ceb8bc517d 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -3181,7 +3181,7 @@ static void rewritelog(request_rec *r, int level, const char *text, ...) ruser = "\"\""; } - rhost = ap_get_remote_host(conn, r->server->module_config, + rhost = ap_get_remote_host(conn, r->per_dir_config, REMOTE_NOLOOKUP, NULL); if (rhost == NULL) { rhost = "UNKNOWN-HOST";