mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 22:58:52 +01:00
Improve optimize level 16 fix.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a4dcd1071a
commit
85a46690c0
@ -3380,11 +3380,15 @@ sub delete_duplicates {
|
|||||||
my $rulenum = @_;
|
my $rulenum = @_;
|
||||||
my $duplicate = 0;
|
my $duplicate = 0;
|
||||||
|
|
||||||
|
if ( $baseref->{mode} == CAT_MODE ) {
|
||||||
|
{
|
||||||
RULE:
|
RULE:
|
||||||
|
|
||||||
while ( --$rulenum >= 0 ) {
|
while ( --$rulenum >= 0 ) {
|
||||||
$ruleref = $_[$rulenum];
|
$ruleref = $_[$rulenum];
|
||||||
|
|
||||||
|
last unless $ruleref->{mode} == CAT_MODE;
|
||||||
|
|
||||||
my @keys2 = sort(keys( %$ruleref ) );
|
my @keys2 = sort(keys( %$ruleref ) );
|
||||||
|
|
||||||
next unless @keys1 == @keys2 ;
|
next unless @keys1 == @keys2 ;
|
||||||
@ -3396,7 +3400,9 @@ sub delete_duplicates {
|
|||||||
next RULE unless compare_values( $baseref->{$key}, $ruleref->{$key} );
|
next RULE unless compare_values( $baseref->{$key}, $ruleref->{$key} );
|
||||||
}
|
}
|
||||||
|
|
||||||
$duplicate = $ruleref->{mode} == CAT_MODE;;
|
$duplicate = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $duplicate ) {
|
if ( $duplicate ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user