mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-10 23:58:14 +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,
|
ULOG => 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
my %ipset_exists;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rules are stored in an internal form
|
# Rules are stored in an internal form
|
||||||
#
|
#
|
||||||
@ -617,6 +619,8 @@ sub initialize( $$$ ) {
|
|||||||
$hashlimitset = 0;
|
$hashlimitset = 0;
|
||||||
$ipset_rules = 0 if $hard;
|
$ipset_rules = 0 if $hard;
|
||||||
|
|
||||||
|
%ipset_exists = ();
|
||||||
|
|
||||||
%helpers = ( amanda => TCP,
|
%helpers = ( amanda => TCP,
|
||||||
ftp => TCP,
|
ftp => TCP,
|
||||||
h323 => UDP,
|
h323 => UDP,
|
||||||
|
@ -1564,7 +1564,7 @@ sub process_conditional( $$ ) {
|
|||||||
} else {
|
} else {
|
||||||
fatal_error "Invalid ?ENDIF" unless $rest eq '';
|
fatal_error "Invalid ?ENDIF" unless $rest eq '';
|
||||||
fatal_error q(Unexpected "?ENDIF" without matching ?IF or ?ELSE) if @ifstack <= $ifstack;
|
fatal_error q(Unexpected "?ENDIF" without matching ?IF or ?ELSE) if @ifstack <= $ifstack;
|
||||||
$omitting = $lastomitting;
|
$omitting = $lastomit;
|
||||||
@{pop @ifstack};
|
@{pop @ifstack};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user