]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix missing CRLF on FTP timeout ABORT commands
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 12 Feb 2017 02:33:40 +0000 (15:33 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 12 Feb 2017 02:33:40 +0000 (15:33 +1300)
src/clients/FtpGateway.cc

index aa3f2e9b0db0ce482cb9892761d6297d084fc568..03ad932d9babc8fc729f98f7720d9d2ae0395859 100644 (file)
@@ -1744,7 +1744,7 @@ Ftp::Gateway::dataChannelConnected(const CommConnectCbParams &io)
 
         // ABORT on timeouts. server may be waiting on a broken TCP link.
         if (io.xerrno == Comm::TIMEOUT)
-            writeCommand("ABOR");
+            writeCommand("ABOR\r\n");
 
         // try another connection attempt with some other method
         ftpSendPassive(this);