Fix INCLUDE inside an ?IF ... ?ENDIF

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-10 17:27:23 -07:00
parent 6ba69c9540
commit 07ff3f294d

View File

@ -2290,7 +2290,7 @@ sub read_a_line(;$) {
}
}
if ( @ifstack ) {
if ( @ifstack > $ifstack ) {
$currentlinenumber = 'EOF';
fatal_error "Missing ?ENDIF to match the ?IF at line $ifstack[-1]->[3]";
}