From: serassio <> Date: Wed, 9 Mar 2005 04:38:40 +0000 (+0000) Subject: Bug #972: Crash after "likely proxy abuse error" X-Git-Tag: SQUID_3_0_PRE4~858 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ea12fca8a89312545a76b16cca5d3c72676698f;p=thirdparty%2Fsquid.git Bug #972: Crash after "likely proxy abuse error" Forward port of 2.5 patch. --- diff --git a/src/http.cc b/src/http.cc index 8d0c16a9b6..5ab92074fa 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.447 2005/03/06 21:08:13 serassio Exp $ + * $Id: http.cc,v 1.448 2005/03/08 21:38:40 serassio Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -81,7 +81,9 @@ httpStateFree(int fd, void *data) return; if (httpState->body_buf) { - clientAbortBody(httpState->orig_request); + if (httpState->orig_request->body_connection.getRaw()) { + clientAbortBody(httpState->orig_request); + } if (httpState->body_buf) { memFree(httpState->body_buf, MEM_8K_BUF);