mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 04:11:22 +01:00
Fix another conditional compilation bug.
?IF $false ?IF $false ... ?ENDIF foo <------- This line is not omitted! ?ENDIF Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a05b3afd7f
commit
2d5269be7b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user