]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1093: --enable-x-accelerator-vary accesses freed memory
authorhno <>
Sun, 10 Oct 2004 09:06:17 +0000 (09:06 +0000)
committerhno <>
Sun, 10 Oct 2004 09:06:17 +0000 (09:06 +0000)
src/http.cc

index dce448b998123f43d30527692b68affd05810888..3d2c0dcaf09868a1ccdf22540668bd9b86122894 100644 (file)
@@ -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)) {