From c1c265656c038706d853288baecce58d7903cc50 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 6 Feb 2025 21:24:12 -0800 Subject: [PATCH] It doesn't matter if the QUIT command fails https://github.com/webmin/webmin/issues/2394 --- web-lib-funcs.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 557a5cb3a..52dd64ef0 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -3439,7 +3439,8 @@ if (!$connected) { } # finish off.. - &ftp_command("QUIT", 2, $error) || return 0; + my $dummy; + &ftp_command("QUIT", 2, \$dummy); close(SOCK); } @@ -3562,7 +3563,8 @@ if ($got != $st[7]) { # finish off.. &ftp_command("", 2, $_[3]) || return 0; -&ftp_command("QUIT", 2, $_[3]) || return 0; +my $dummy; +&ftp_command("QUIT", 2, \$dummy); close(SOCK); return 1;