]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Stop reply generation after parsing failures.
authorrobertc <>
Wed, 20 Aug 2003 04:30:36 +0000 (04:30 +0000)
committerrobertc <>
Wed, 20 Aug 2003 04:30:36 +0000 (04:30 +0000)
Keywords:

If we cannot parse the response to generate a reply, stop reply generation. Prevents a SIGSEGV in httpBuildVersion.

src/client_side_reply.cc

index fddf263ae4c2565b00c4ab8adf81a0cfea79dedc..e089268ab45baf58a8283d52ded8c42bef943034 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.65 2003/08/13 00:17:26 robertc Exp $
+ * $Id: client_side_reply.cc,v 1.66 2003/08/19 22:30:36 robertc Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -1453,6 +1453,7 @@ clientReplyContext::buildReply(const char *buf, size_t size)
             //          clientBuildRangeHeader(http, holdingReply);
         }
 
+        return;
     }
 
     /* enforce 1.0 reply version */