]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #972: Crash after "likely proxy abuse error"
authorserassio <>
Wed, 9 Mar 2005 04:38:40 +0000 (04:38 +0000)
committerserassio <>
Wed, 9 Mar 2005 04:38:40 +0000 (04:38 +0000)
Forward port of 2.5 patch.

src/http.cc

index 8d0c16a9b62bfb7d1f8af981184a758ab59dc913..5ab92074faf751d417153be893a1f3f58793f044 100644 (file)
@@ -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);