]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3472: segfault with the message "urlParse: URL too large"
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 9 Jan 2012 14:34:31 +0000 (16:34 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 9 Jan 2012 14:34:31 +0000 (16:34 +0200)
src/client_side.cc

index 9beb0a737bbc40083c1c2904945f78ad1f6f4208..7543265d0a143e75fb3547137f7527baedacac2d 100644 (file)
@@ -2702,7 +2702,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);