From: Stefan Fritsch Date: Sat, 2 Jul 2011 06:45:54 +0000 (+0000) Subject: Fix logging of the log id of subrequests X-Git-Tag: 2.3.14^2~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07b7057cb1fdf5acc53c811e1f51e990c8baac07;p=thirdparty%2Fapache%2Fhttpd.git Fix logging of the log id of subrequests git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1142160 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index 252adf6f812..88df8eb30b5 100644 --- a/server/log.c +++ b/server/log.c @@ -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; }