]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Wrong intialization value for clientReplyContext::headers_sz member
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 3 Jun 2015 17:24:41 +0000 (20:24 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 3 Jun 2015 17:24:41 +0000 (20:24 +0300)
The clientReplyContext::headers_sz member after the trunk patch r14078
initialized to wrong value. In many cases inside clientReplyContext class
this is considered as initialized to "0" and setting to "-1" can cause
problems.

This is a Measurement Factory project

src/client_side_reply.cc

index 3b35fbd779dd0e6b2f065f84cca8a8371b106e48..9a38472c654327d9feb601d898836874e130ca84 100644 (file)
@@ -77,7 +77,7 @@ clientReplyContext::clientReplyContext(ClientHttpRequest *clientContext) :
     purgeStatus(Http::scNone),
     lookingforstore(0),
     http(cbdataReference(clientContext)),
-    headers_sz(-1),
+    headers_sz(0),
     sc(NULL),
     old_reqsize(0),
     reqsize(0),