From: Christos Tsantilas Date: Mon, 9 Jan 2012 14:34:31 +0000 (+0200) Subject: Bug 3472: segfault with the message "urlParse: URL too large" X-Git-Tag: BumpSslServerFirst.take05~12^2~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8faead9fe9aea494bd78a0f799ad9777dc46d18;p=thirdparty%2Fsquid.git Bug 3472: segfault with the message "urlParse: URL too large" --- diff --git a/src/client_side.cc b/src/client_side.cc index 9beb0a737b..7543265d0a 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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);