From: rousskov <> Date: Wed, 18 Mar 1998 00:35:12 +0000 (+0000) Subject: - Fixed a bug: we should not collect stats for a CC field that we failed to parse. X-Git-Tag: SQUID_3_0_PRE1~3804 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eeb45bfecc4728d0c78b9006dfb884deb19aa9d;p=thirdparty%2Fsquid.git - Fixed a bug: we should not collect stats for a CC field that we failed to parse. --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index eaac914aa7..471ffa6e96 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpHeader.cc,v 1.24 1998/03/17 07:08:26 rousskov Exp $ + * $Id: HttpHeader.cc,v 1.25 1998/03/17 17:35:12 rousskov Exp $ * * DEBUG: section 55 HTTP Header * AUTHOR: Alex Rousskov @@ -343,7 +343,7 @@ httpHeaderClean(HttpHeader * hdr) while ((e = httpHeaderGetEntry(hdr, &pos))) { /* fix this (for cc too) for req headers @?@ */ statHistCount(&HttpHeaderStats[0].fieldTypeDistr, e->id); - if (e->id == HDR_CACHE_CONTROL) + if (e->id == HDR_CACHE_CONTROL && e->cache.v_pcc) httpHdrCcUpdateStats(e->cache.v_pcc, &HttpHeaderStats[0].ccTypeDistr); httpHeaderEntryClean(e); /* yes, this leaves us in inconsistent state */ }