mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 06:38:53 +01:00
Correct IPSET_WARNINGS
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
722e888043
commit
2026fdab6a
@ -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,
|
||||
|
@ -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};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user