diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index a8de01d6e..62ee4db21 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1191,7 +1191,7 @@ sub mac_match( $ ) { my $mac = $_[0]; $mac =~ s/^(!?)~//; - $mac =~ s/^!// if my $invert = ( $1 ? '! ' : ''); + my $invert = ( $1 ? '! ' : ''); $mac =~ tr/-/:/; fatal_error "Invalid MAC address ($mac)" unless $mac =~ /^(?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$/;