From: Stefan Fritsch Date: Sun, 18 Nov 2012 18:42:48 +0000 (+0000) Subject: Don't log a spurious "-" if a request has been rejected X-Git-Tag: 2.5.0-alpha~6103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=882f822f02df2c971910ef9d8b1146033e0360e9;p=thirdparty%2Fapache%2Fhttpd.git Don't log a spurious "-" if a request has been rejected before mod_log_forensic could attach its id to it. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693292 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1410954 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index c12c51bdf5f..9e0d080c247 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_log_forensic: Don't log a spurious "-" if a request has been rejected + before mod_log_forensic could attach its id to it. [Stefan Fritsch] + *) ap_expr: Add SERVER_PROTOCOL_VERSION, ..._MAJOR, and ..._MINOR variables. [Stefan Fritsch] diff --git a/modules/loggers/mod_log_forensic.c b/modules/loggers/mod_log_forensic.c index add3eb94ac6..7cbb76dff24 100644 --- a/modules/loggers/mod_log_forensic.c +++ b/modules/loggers/mod_log_forensic.c @@ -240,7 +240,7 @@ static int log_after(request_rec *r) apr_size_t l, n; apr_status_t rv; - if (!cfg->fd) { + if (!cfg->fd || id == NULL) { return DECLINED; }