forked from extern/shorewall_code
Remove a 'defined' test that is no longer needed.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
359c221783
commit
9a00191c88
@ -594,7 +594,8 @@ sub add_reference ( $$ ) {
|
||||
}
|
||||
|
||||
#
|
||||
# Compress out undefined elements in rules
|
||||
# Compress out undefined elements in rules - beginning with 4.4.9, this gets called any time that
|
||||
# a rule other than the last one in the chain is deleted (set to 'undef').
|
||||
#
|
||||
sub compress_rules( $ ) {
|
||||
my $chainref = shift;
|
||||
@ -622,7 +623,7 @@ sub purge_jump ( $$ ) {
|
||||
|
||||
for ( @{$fromref->{rules}} ) {
|
||||
$rule++;
|
||||
if ( defined && / -[gj] ${to}\b/ ) {
|
||||
if ( / -[gj] ${to}\b/ ) {
|
||||
trace( $fromref, 'D', $rule, $_ ) if $debug;
|
||||
$_ = undef;
|
||||
$deleted = 1 unless $rule == $rules;
|
||||
|
Loading…
Reference in New Issue
Block a user