From: Christos Tsantilas Date: Thu, 30 Oct 2014 15:18:20 +0000 (+0200) Subject: Fix: Unable to open FTP socket during reconfigure X-Git-Tag: merge-candidate-3-v1~521 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecba3352a3f5804e1aece1492aa35af6670a0d18;p=thirdparty%2Fsquid.git Fix: Unable to open FTP socket during reconfigure Squid does not close FTP listening ports on reconfigure. --- diff --git a/src/servers/FtpServer.cc b/src/servers/FtpServer.cc index 9d622ba32b..121f33d2a3 100644 --- a/src/servers/FtpServer.cc +++ b/src/servers/FtpServer.cc @@ -274,7 +274,7 @@ Ftp::StartListening() void Ftp::StopListening() { - for (AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) { + for (AnyP::PortCfgPointer s = FtpPortList; s != NULL; s = s->next) { if (s->listenConn != NULL) { debugs(1, DBG_IMPORTANT, "Closing FTP port " << s->listenConn->local); s->listenConn->close();