]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Possible fix for storeAppend "e->store_status == STORE_PENDING" assertion
authorhno <>
Wed, 31 May 2000 16:00:24 +0000 (16:00 +0000)
committerhno <>
Wed, 31 May 2000 16:00:24 +0000 (16:00 +0000)
when called via ftpAcceptDataConnection.

src/ftp.cc

index 679bb5126f3870875562de8e588a3aaf04b491d1..53fed3d1f8554d65881eb1060cf285f99dff019b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.293 2000/05/16 07:06:04 wessels Exp $
+ * $Id: ftp.cc,v 1.294 2000/05/31 10:00:24 hno Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -1876,6 +1876,11 @@ ftpAcceptDataConnection(int fd, void *data)
     struct sockaddr_in my_peer, me;
     debug(9, 3) ("ftpAcceptDataConnection\n");
 
+    if (EBIT_TEST(ftpState->entry->flags, ENTRY_ABORTED)) {
+       comm_close(ftpState->ctrl.fd);
+       return;
+    }
+
     fd = comm_accept(fd, &my_peer, &me);
     if (fd < 0) {
        debug(9, 1) ("ftpHandleDataAccept: comm_accept(%d): %s", fd, xstrerror());