From: hno <> Date: Tue, 23 May 2006 22:22:34 +0000 (+0000) Subject: Fix a memory corruption when building the magic Vary marker object headers X-Git-Tag: SQUID_3_0_PRE4~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4daf94197f026ad450d3a84f6bf4762b8975ca88;p=thirdparty%2Fsquid.git Fix a memory corruption when building the magic Vary marker object headers somehow this cast made things go very bad. Luckily it isn't needed as we already hold a reference to the reply a few lines earlier. --- diff --git a/src/store.cc b/src/store.cc index 3fe269c289..85c60a78ce 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.593 2006/05/19 23:10:20 wessels Exp $ + * $Id: store.cc,v 1.594 2006/05/23 16:22:34 hno Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -709,7 +709,7 @@ storeSetPublicKey(StoreEntry * e) if (vary.size()) { /* Again, we own this structure layout */ - ((HttpHeader) pe->getReply()->header).putStr(HDR_VARY, vary.buf()); + rep->header.putStr(HDR_VARY, vary.buf()); vary.clean(); } @@ -718,7 +718,7 @@ storeSetPublicKey(StoreEntry * e) if (vary.buf()) { /* Again, we own this structure layout */ - ((HttpHeader) pe->getReply()->header).putStr(HDR_X_ACCELERATOR_VARY, vary.buf()); + rep->header.putStr(HDR_X_ACCELERATOR_VARY, vary.buf()); vary.clean(); }