From 602ecad71237cb20b8e57a1e286478314d524022 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 20 Aug 2014 11:25:49 -0700 Subject: [PATCH] Cleaner code in expand_variables() Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 80648b612..3ed0b8fe7 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3259,9 +3259,9 @@ sub expand_variables( \$ ) { fatal_error "Variable Expansion Loop" if ++$count > 100; } - if ( $actparms{0} ) { + if ( $chain ) { # - # Allow escaping at signs (@) for u32 + # We're in an action body -- allow escaping at signs (@) for u32 # $$lineref =~ s/\\@/??/g; # $1 $2 $3 - $4