]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 1224 / 1530: Crash related to failed PUT/POST requests where
authorhno <>
Thu, 11 May 2006 02:34:18 +0000 (02:34 +0000)
committerhno <>
Thu, 11 May 2006 02:34:18 +0000 (02:34 +0000)
body processing may close the connection "in the middle" of client
side request processing.

src/client_side.cc

index 9b7558f68af4c2383376cca8dbb268db84dc49aa..c0de6c4f57c37a90f266a18b6650fa2603c760b3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.723 2006/05/08 23:38:33 robertc Exp $
+ * $Id: client_side.cc,v 1.724 2006/05/10 20:34:18 hno Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2532,6 +2532,9 @@ clientReadRequest(int fd, char *buf, size_t size, comm_err_t flag, int xerrno,
         }
     }
 
+    if (!conn->isOpen())
+        return;
+
     /* Process next request */
     if (conn->getConcurrentRequestCount() == 0)
         fd_note(conn->fd, "Reading next request");