From 8526dafc5df6e0a5dd906f23159f2e67b5ee2feb Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 19 Dec 2010 08:10:41 -0800 Subject: [PATCH] Don't allow interface that is identical to the root of a wildcard --- Shorewall/Perl/Shorewall/Zones.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Zones.pm b/Shorewall/Perl/Shorewall/Zones.pm index 90cd30007..a9e9c3d95 100644 --- a/Shorewall/Perl/Shorewall/Zones.pm +++ b/Shorewall/Perl/Shorewall/Zones.pm @@ -1197,7 +1197,7 @@ sub known_interface($;$) for my $i ( @interfaces ) { $interfaceref = $interfaces{$i}; my $root = $interfaceref->{root}; - if ( $i ne $root && substr( $interface, 0, length $root ) eq $root ) { + if ( $i ne $root && $interface ne $root && substr( $interface, 0, length $root ) eq $root ) { my $physical = map_physical( $interface, $interfaceref ); my $copyref = { options => $interfaceref->{options},