From 2d5269be7b48a836afa92101fae8e13a3e8f6ca1 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 11 May 2012 07:44:46 -0700 Subject: [PATCH] Fix another conditional compilation bug. ?IF $false ?IF $false ... ?ENDIF foo <------- This line is not omitted! ?ENDIF Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index c3460773d..97fb7db9d 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -1663,7 +1663,7 @@ sub process_conditional( $$$ ) { fatal_error "Invalid IF variable ($rest)" unless ($rest =~ s/^\$// || $rest =~ /^__/ ) && $rest =~ /^\w+$/; - push @ifstack, [ 'IF', $lastomit, $omitting, $linenumber ]; + push @ifstack, [ 'IF', $omitting, $omitting, $linenumber ]; if ( $rest eq '__IPV6' ) { $omitting = $family == F_IPV4;