]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2492: assertion failed: Server.cc:70: "!requestBodySource"
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 21 Oct 2008 11:25:14 +0000 (00:25 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 21 Oct 2008 11:25:14 +0000 (00:25 +1300)
Paranoid: check that swanSong has been called
Extra paranoia: run before exiting swanSong. I really mean it. They MUST pass here.

src/Server.cc

index 606b6881e8e96c6590283a0295f166d3594a76cc..12b00a51f6fba0264591bb53dddbaec2c3703dee 100644 (file)
@@ -103,6 +103,14 @@ ServerStateData::swanSong()
     Initiator::swanSong();
     BodyProducer::swanSong();
 #endif
+
+    // paranoid: check that swanSong has been called
+    // extra paranoid: yeah, I really mean it. they MUST pass here.
+    assert(!requestBodySource);
+#if USE_ADAPTATION
+    assert(!virginBodyDestination);
+    assert(!adaptedBodySource);
+#endif
 }