]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
in ftpAbort, close the descriptors instead of trying to send QUIT
authorwessels <>
Fri, 20 Jun 1997 08:22:11 +0000 (08:22 +0000)
committerwessels <>
Fri, 20 Jun 1997 08:22:11 +0000 (08:22 +0000)
src/ftp.cc

index 359db7477de553fd81766a9396c8484ba655d08d..329791b09c3ed410258f0ddad1685d3b0d727c98 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.126 1997/06/20 00:00:12 wessels Exp $
+ * $Id: ftp.cc,v 1.127 1997/06/20 02:22:11 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -1480,5 +1480,7 @@ ftpAbort(void *data)
 {
     FtpStateData *ftpState = data;
     debug(9, 1) ("ftpAbort: %s\n", ftpState->entry->url);
-    ftpDataTransferDone(ftpState);
+    if (ftpState->data.fd >= 0)
+        comm_close(ftpState->data.fd);
+    comm_close(ftpState->ctrl.fd);
 }