From 99bcc9cc39dbeb9951b8c5b38af892666bf6a9d5 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 24 Feb 2003 15:35:50 +0000 Subject: [PATCH] Alloc null second column in ecn file git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@469 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 24f25f9b8..b8a235120 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -1799,8 +1799,8 @@ setup_ecn() # $1 = file name startup_error "Unknown interface $interface" list_search $interface $interfaces || \ interfaces="$interfaces $interface" - [ "x$host" = "x-" ] && host=0.0.0.0/0 - for h in `separate_list $host`; do + [ "x$host" = "x-" ] && host= + for h in `separate_list ${host:-0.0.0.0/0}`; do hosts="$hosts $interface:$h" done done < $TMP_DIR/ecn