From: Christos Tsantilas Date: Fri, 15 Nov 2013 17:56:36 +0000 (-0700) Subject: Recognize FTP 125 (Data connection already open) as we do 150 response. X-Git-Tag: SQUID_3_5_0_1~117^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af7d28d469bb2f0652ad024b6df3df5758c9ca7;p=thirdparty%2Fsquid.git Recognize FTP 125 (Data connection already open) as we do 150 response. Microsoft servers seem to favor 125 responses in some conditions. --- diff --git a/src/FtpGatewayServer.cc b/src/FtpGatewayServer.cc index 21cbb74f4b..1d10abbc0a 100644 --- a/src/FtpGatewayServer.cc +++ b/src/FtpGatewayServer.cc @@ -520,7 +520,7 @@ ServerStateData::readDataReply() assert(clientState() == ConnStateData::FTP_HANDLE_DATA_REQUEST || clientState() == ConnStateData::FTP_HANDLE_UPLOAD_REQUEST); - if (ctrl.replycode == 150) { + if (ctrl.replycode == 125 || ctrl.replycode == 150) { if (clientState() == ConnStateData::FTP_HANDLE_DATA_REQUEST) forwardPreliminaryReply(&ServerStateData::startDataDownload); else // clientState() == ConnStateData::FTP_HANDLE_UPLOAD_REQUEST