mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-19 12:50:57 +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,23 +3380,29 @@ sub delete_duplicates {
|
|||||||
my $rulenum = @_;
|
my $rulenum = @_;
|
||||||
my $duplicate = 0;
|
my $duplicate = 0;
|
||||||
|
|
||||||
RULE:
|
if ( $baseref->{mode} == CAT_MODE ) {
|
||||||
|
{
|
||||||
|
RULE:
|
||||||
|
|
||||||
while ( --$rulenum >= 0 ) {
|
while ( --$rulenum >= 0 ) {
|
||||||
$ruleref = $_[$rulenum];
|
$ruleref = $_[$rulenum];
|
||||||
|
|
||||||
my @keys2 = sort(keys( %$ruleref ) );
|
last unless $ruleref->{mode} == CAT_MODE;
|
||||||
|
|
||||||
next unless @keys1 == @keys2 ;
|
my @keys2 = sort(keys( %$ruleref ) );
|
||||||
|
|
||||||
my $keynum = 0;
|
next unless @keys1 == @keys2 ;
|
||||||
|
|
||||||
for my $key ( @keys1 ) {
|
my $keynum = 0;
|
||||||
next RULE unless $key eq $keys2[$keynum++];
|
|
||||||
next RULE unless compare_values( $baseref->{$key}, $ruleref->{$key} );
|
for my $key ( @keys1 ) {
|
||||||
|
next RULE unless $key eq $keys2[$keynum++];
|
||||||
|
next RULE unless compare_values( $baseref->{$key}, $ruleref->{$key} );
|
||||||
|
}
|
||||||
|
|
||||||
|
$duplicate = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$duplicate = $ruleref->{mode} == CAT_MODE;;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $duplicate ) {
|
if ( $duplicate ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user