]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 1560: ftpSendPasv: getsockname(-1,..): (9) Bad file descriptor
authorhno <>
Mon, 13 Aug 2007 08:39:06 +0000 (08:39 +0000)
committerhno <>
Mon, 13 Aug 2007 08:39:06 +0000 (08:39 +0000)
missing returns could cause the ftp state machine to attempt to continue
after terminal failure.

src/ftp.cc

index 2390cacbc9f183df38c6e0c3c5130e94d78ae1ef..7a17e02a741c3bf2e8cf7909787453c0f1a3a409 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.433 2007/08/12 23:57:28 amosjeffries Exp $
+ * $Id: ftp.cc,v 1.434 2007/08/13 02:39:06 hno Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -2172,6 +2172,7 @@ ftpReadMdtm(FtpStateData * ftpState)
         ftpState->unhack();
     } else if (code < 0) {
         ftpFail(ftpState);
+       return;
     }
 
     ftpSendSize(ftpState);
@@ -2217,6 +2218,7 @@ ftpReadSize(FtpStateData * ftpState)
         }
     } else if (code < 0) {
         ftpFail(ftpState);
+       return;
     }
 
     ftpSendPasv(ftpState);