httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r169534 - /httpd/httpd/branches/1.3.x/src/modules/standard/mod_log_forensic.c
Date Tue, 10 May 2005 23:32:40 GMT
Author: wrowe
Date: Tue May 10 16:32:38 2005
New Revision: 169534

URL: http://svn.apache.org/viewcvs?rev=169534&view=rev
Log:

  Fix an irritating bug.  The forensic-id is captured in two places, as
  an r->notes entry, and in the (supposedly constant) server config(!)

  This patch retrieves the r->notes copy instead at final logging phase.

Modified:
    httpd/httpd/branches/1.3.x/src/modules/standard/mod_log_forensic.c

Modified: httpd/httpd/branches/1.3.x/src/modules/standard/mod_log_forensic.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/1.3.x/src/modules/standard/mod_log_forensic.c?rev=169534&r1=169533&r2=169534&view=diff
==============================================================================
--- httpd/httpd/branches/1.3.x/src/modules/standard/mod_log_forensic.c (original)
+++ httpd/httpd/branches/1.3.x/src/modules/standard/mod_log_forensic.c Tue May 10 16:32:38
2005
@@ -227,18 +227,18 @@
 {
     fcfg *cfg = ap_get_module_config(r->server->module_config,
                                      &log_forensic_module);
+    const char *id;
     char *s;
-    rcfg *rcfg;
-    
+
     if(cfg->fd < 0)
         return DECLINED;
 
-    rcfg = ap_get_module_config(r->request_config, &log_forensic_module);
+    id = ap_table_get(r->notes, "forensic-id");
 
-    if (!rcfg)
+    if (!id)
         return DECLINED;
 
-    s = ap_pstrcat(r->pool, "-", rcfg->id, "\n", NULL);
+    s = ap_pstrcat(r->pool, "-", id, "\n", NULL);
     write(cfg->fd, s, strlen(s));
 
     return OK;



Mime
View raw message