Commits

Stefan Fritsch  committed e6140ab

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@141095413f79535-47bb-0310-9956-ffa450edef68

  • Participants
  • Parent commits 00b6858

Comments (0)

Files changed (2)

                                                          -*- 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]
 

File modules/loggers/mod_log_forensic.c

     apr_size_t l, n;
     apr_status_t rv;
 
-    if (!cfg->fd) {
+    if (!cfg->fd || id == NULL) {
         return DECLINED;
     }