]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3472: segfault with the message 'urlParse: URL too large'
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 17 Jan 2012 08:46:52 +0000 (01:46 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 17 Jan 2012 08:46:52 +0000 (01:46 -0700)
src/client_side.cc

index aecd11c0ad4cf8639b230f7945467c794f0b3b46..ca87c70e1f90496ef97be42189e176094078c075 100644 (file)
@@ -2701,7 +2701,7 @@ finish:
      * be freed and the above connNoteUseOfBuffer() would hit an
      * assertion, not to mention that we were accessing freed memory.
      */
-    if (http->request->flags.resetTCP() && Comm::IsConnOpen(conn->clientConnection)) {
+    if (request && request->flags.resetTCP() && Comm::IsConnOpen(conn->clientConnection)) {
         debugs(33, 3, HERE << "Sending TCP RST on " << conn->clientConnection);
         conn->flags.readMore = false;
         comm_reset_close(conn->clientConnection);