]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1312: assertion failed: client_side.cc:2663: "request == conn->body.request"
authorserassio <>
Sun, 12 Jun 2005 20:30:50 +0000 (20:30 +0000)
committerserassio <>
Sun, 12 Jun 2005 20:30:50 +0000 (20:30 +0000)
The problem was originated during the forward port of patch for bug #890.
There is an obvious logical error, this patch should fix it.

src/client_side.cc

index 50d829427e58cd5c5a52826938433415ecb97969..3c4de360ece291bb3c18b4fe709d6e38d4977222 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.686 2005/06/09 16:04:30 serassio Exp $
+ * $Id: client_side.cc,v 1.687 2005/06/12 14:30:50 serassio Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2646,10 +2646,10 @@ clientAbortBody(HttpRequest * request)
     char *buf;
     CBCB *callback;
 
-    if (conn.getRaw() == NULL || conn->body.size_left <= 0)
+    if (conn.getRaw() == NULL || conn->body.size_left <= 0 || conn->body.request != request)
         return 0;              /* No body to abort */
 
-    if (conn->body.callback != NULL || conn->body.request != request) {
+    if (conn->body.callback != NULL) {
         buf = conn->body.buf;
         callback = conn->body.callback;
         assert(request == conn->body.request);