From: Alex Rousskov Date: Sun, 28 Sep 2008 17:34:36 +0000 (-0600) Subject: When adding a body_pipe to adaptation message, do not forget to update X-Git-Tag: SQUID_3_1_0_1~45^2~11^2~17 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ce367911de416e0742448a81c9edcec8ce59a127;p=thirdparty%2Fsquid.git When adding a body_pipe to adaptation message, do not forget to update the raw header as well. --- diff --git a/src/eCAP/MessageRep.cc b/src/eCAP/MessageRep.cc index 2995fda72d..565215c87b 100644 --- a/src/eCAP/MessageRep.cc +++ b/src/eCAP/MessageRep.cc @@ -422,8 +422,10 @@ void Ecap::MessageRep::tieBody(Ecap::XactionRep *x) { Must(theBodyRep != NULL); // addBody must be called first + Must(!theMessage.header->body_pipe); Must(!theMessage.body_pipe); - theMessage.body_pipe = new BodyPipe(x); + theMessage.header->body_pipe = new BodyPipe(x); + theMessage.body_pipe = theMessage.header->body_pipe; theBodyRep->tie(theMessage.body_pipe); }