Correct IPSET_WARNINGS

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-03-19 07:44:52 -07:00
parent 722e888043
commit 2026fdab6a
2 changed files with 5 additions and 1 deletions

View File

@ -488,6 +488,8 @@ my %builtin_target = ( ACCEPT => 1,
ULOG => 1,
);
my %ipset_exists;
#
# Rules are stored in an internal form
#
@ -617,6 +619,8 @@ sub initialize( $$$ ) {
$hashlimitset = 0;
$ipset_rules = 0 if $hard;
%ipset_exists = ();
%helpers = ( amanda => TCP,
ftp => TCP,
h323 => UDP,

View File

@ -1564,7 +1564,7 @@ sub process_conditional( $$ ) {
} else {
fatal_error "Invalid ?ENDIF" unless $rest eq '';
fatal_error q(Unexpected "?ENDIF" without matching ?IF or ?ELSE) if @ifstack <= $ifstack;
$omitting = $lastomitting;
$omitting = $lastomit;
@{pop @ifstack};
}