]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
When adding a body_pipe to adaptation message, do not forget to update
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 28 Sep 2008 17:34:36 +0000 (11:34 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 28 Sep 2008 17:34:36 +0000 (11:34 -0600)
the raw header as well.

src/eCAP/MessageRep.cc

index 2995fda72d19ddd4aec3ebb3617a7259381e14dd..565215c87bb8e6b81cd15f755ceeeb836a54b20d 100644 (file)
@@ -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);
 }