From 2eeb45bfecc4728d0c78b9006dfb884deb19aa9d Mon Sep 17 00:00:00 2001 From: rousskov <> Date: Wed, 18 Mar 1998 00:35:12 +0000 Subject: [PATCH] - Fixed a bug: we should not collect stats for a CC field that we failed to parse. --- src/HttpHeader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ } -- 2.47.3