From 283f489063f8f12860125db185f4b5d85ed2b0ec Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 29 Jul 2007 16:18:43 +0000 Subject: [PATCH] Convert direct increment of cmdcount (which was misspelled) with a call to push_cmd_mode git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6997 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 46afa2dfa..d47c2cf97 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1620,7 +1620,7 @@ sub expand_rule( $$$$$$$$$$ ) add_command( $chainref , "for address in $list; do" ); $rule .= '-m conntrack --ctorigdst $address '; - $chainref->{cmdount}++; + push_cmd_mode $chainref; } else { get_interface_address $interfaces[0]; $rule .= join( '', '-m conntrack --ctorigdst $', interface_address ( $interfaces[0] ), ' ' );