]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Don't log a spurious "-" if a request has been rejected
authorStefan Fritsch <sf@apache.org>
Sun, 18 Nov 2012 18:42:48 +0000 (18:42 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 18 Nov 2012 18:42:48 +0000 (18:42 +0000)
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

CHANGES
modules/loggers/mod_log_forensic.c

diff --git a/CHANGES b/CHANGES
index c12c51bdf5f71480ccc050ec8e1a7f9f0c68e441..9e0d080c247ba07ac5303c9475ab3c7e75865aba 100644 (file)
--- 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]
 
index add3eb94ac64ee5682eecc843512aa05f0c8ea84..7cbb76dff249b991f673a24e8e00851a2ee7384f 100644 (file)
@@ -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;
     }