summaryrefslogtreecommitdiffstats
path: root/lib/network/drakfirewall.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/drakfirewall.pm')
-rw-r--r--lib/network/drakfirewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index 659606a..b8da667 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -139,7 +139,7 @@ sub get_ports() {
sub set_ports {
my ($do_pkgs, $disabled, $ports, $log_net_drop, $o_in) = @_;
- my $shorewall = network::shorewall::read($o_in) or return;
+ my $shorewall = network::shorewall::read(!$disabled && $o_in) or return;
if (!$disabled || -x "$::prefix/sbin/shorewall") {
$do_pkgs->ensure_binary_is_installed('shorewall', 'shorewall', $::isInstall) or return;