From: hno <> Date: Sun, 10 Oct 2004 09:06:17 +0000 (+0000) Subject: Bug #1093: --enable-x-accelerator-vary accesses freed memory X-Git-Tag: SQUID_3_0_PRE4~1025 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa38be4a3f736ae444aec2941800609d300f784a;p=thirdparty%2Fsquid.git Bug #1093: --enable-x-accelerator-vary accesses freed memory --- diff --git a/src/http.cc b/src/http.cc index dce448b998..3d2c0dcaf0 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.432 2004/10/10 02:45:11 hno Exp $ + * $Id: http.cc,v 1.433 2004/10/10 03:06:17 hno Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -558,6 +558,7 @@ httpMakeVaryMark(HttpRequest * request, HttpReply const * reply) vary.clean(); #if X_ACCELERATOR_VARY + pos = NULL; vary = httpHeaderGetList(&reply->header, HDR_X_ACCELERATOR_VARY); while (strListGetItem(&vary, ',', &item, &ilen, &pos)) {