From: rousskov <> Date: Fri, 27 Jul 2007 03:17:01 +0000 (+0000) Subject: Added an assertion to avoid segmentation faults in clientSocketRecipient. X-Git-Tag: SQUID_3_0_PRE7~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a47859547cfb143c1305c5e9380ea28a4990588a;p=thirdparty%2Fsquid.git Added an assertion to avoid segmentation faults in clientSocketRecipient. I can trigger this assertion, but have not investigated the bug yet. --- diff --git a/src/client_side.cc b/src/client_side.cc index ebe6838b4c..1bcc1f22ea 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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); }