]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix: Unable to open FTP socket during reconfigure
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 30 Oct 2014 15:18:20 +0000 (17:18 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 30 Oct 2014 15:18:20 +0000 (17:18 +0200)
Squid does not close FTP listening ports on reconfigure.

src/servers/FtpServer.cc

index 9d622ba32b17b13d5f56ee66414f8c53c9504c5f..121f33d2a366c8e2f7ae30aaed28b57b3287fe11 100644 (file)
@@ -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();