summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-27 13:03:24 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-27 13:03:24 +0000
commit23b3a0851049b73b1d2b909f9b3b56094da86d18 (patch)
tree1a45fa77e50005f06e073215fdd688e958785138
parent0bddf283ba807b33d6929aad0d5a35920b0bf220 (diff)
downloaddrakx-net-23b3a0851049b73b1d2b909f9b3b56094da86d18.tar
drakx-net-23b3a0851049b73b1d2b909f9b3b56094da86d18.tar.gz
drakx-net-23b3a0851049b73b1d2b909f9b3b56094da86d18.tar.bz2
drakx-net-23b3a0851049b73b1d2b909f9b3b56094da86d18.tar.xz
drakx-net-23b3a0851049b73b1d2b909f9b3b56094da86d18.zip
fix reading config file if it exists but is almost empty
-rw-r--r--lib/network/shorewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/shorewall.pm b/lib/network/shorewall.pm
index b04c47d..bf3cb32 100644
--- a/lib/network/shorewall.pm
+++ b/lib/network/shorewall.pm
@@ -105,7 +105,7 @@ sub read {
$conf{log_net_drop} = @policy ? (any { $_->[0] eq 'net' && $_->[1] eq 'all' && $_->[2] eq 'DROP' && $_->[3] } @policy) : 1;
get_zones(\%conf, $o_in);
- @policy && \%conf;
+ get_config_file('zones') && \%conf;
}
sub ports_by_proto {