Remove extra substitution

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8470 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-04-20 23:14:27 +00:00
parent 9adb6d57f5
commit 69b61dfc55

View File

@ -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}$/;