Rename a variable to avoid confusion

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-08-14 15:45:24 -07:00
parent 646c20491a
commit bcacce7ed0
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -3186,17 +3186,17 @@ sub delete_references( $ ) {
#
sub calculate_digest( $ ) {
my $chainref = shift;
my $digest = '';
my $rules = '';
for ( @{$chainref->{rules}} ) {
if ( $digest ) {
$digest .= ' |' . format_rule( $chainref, $_, 1 );
if ( $rules ) {
$rules .= ' |' . format_rule( $chainref, $_, 1 );
} else {
$digest = format_rule( $chainref, $_, 1 );
$rules = format_rule( $chainref, $_, 1 );
}
}
$chainref->{digest} = sha1_hex $digest;
$chainref->{digest} = sha1_hex $rules;
}
#