]> granicus.if.org Git - apache/commitdiff
Fix logging of the log id of subrequests
authorStefan Fritsch <sf@apache.org>
Sat, 2 Jul 2011 06:45:54 +0000 (06:45 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 2 Jul 2011 06:45:54 +0000 (06:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1142160 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 252adf6f81220278f8ba0e786ddb9ac3eb16cbf6..88df8eb30b5df0d8d102966514cc6feab640c472 100644 (file)
@@ -654,8 +654,8 @@ static int log_log_id(const ap_errorlog_info *info, const char *arg,
             return cpystrn(buf, info->c->log_id, buflen);
         }
     }
-    else if (info->r) {
-        return cpystrn(buf, info->r->log_id, buflen);
+    else if (info->rmain) {
+        return cpystrn(buf, info->rmain->log_id, buflen);
     }
     return 0;
 }