mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-24 22:49:12 +01:00
Rename a variable to avoid confusion
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
646c20491a
commit
bcacce7ed0
@ -3186,17 +3186,17 @@ sub delete_references( $ ) {
|
|||||||
#
|
#
|
||||||
sub calculate_digest( $ ) {
|
sub calculate_digest( $ ) {
|
||||||
my $chainref = shift;
|
my $chainref = shift;
|
||||||
my $digest = '';
|
my $rules = '';
|
||||||
|
|
||||||
for ( @{$chainref->{rules}} ) {
|
for ( @{$chainref->{rules}} ) {
|
||||||
if ( $digest ) {
|
if ( $rules ) {
|
||||||
$digest .= ' |' . format_rule( $chainref, $_, 1 );
|
$rules .= ' |' . format_rule( $chainref, $_, 1 );
|
||||||
} else {
|
} else {
|
||||||
$digest = format_rule( $chainref, $_, 1 );
|
$rules = format_rule( $chainref, $_, 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$chainref->{digest} = sha1_hex $digest;
|
$chainref->{digest} = sha1_hex $rules;
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user