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

index bb31d2d5dd25987cb271e7d3b0cebebbfbc4f8be..6045cc7d6e7a666a585eb9154c0cebdd0c145ec7 100644 (file)
@@ -1775,7 +1775,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);