]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added an assertion to avoid segmentation faults in clientSocketRecipient.
authorrousskov <>
Fri, 27 Jul 2007 03:17:01 +0000 (03:17 +0000)
committerrousskov <>
Fri, 27 Jul 2007 03:17:01 +0000 (03:17 +0000)
I can trigger this assertion, but have not investigated the bug yet.

src/client_side.cc

index ebe6838b4cea0305c7c2040f9604bc3fa93132c1..1bcc1f22ea4059548837caa02a3ab1b13db5d723 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.756 2007/05/29 13:31:39 amosjeffries Exp $
+ * $Id: client_side.cc,v 1.757 2007/07/26 21:17:01 rousskov Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1257,6 +1257,7 @@ clientSocketRecipient(clientStreamNode * node, ClientHttpRequest * http,
     if (!context->startOfOutput())
         context->sendBody(rep, recievedData);
     else {
+        assert(rep);
         http->al.reply = HTTPMSGLOCK(rep);
         context->sendStartOfMessage(rep, recievedData);
     }