Don't allow '*' in interface names

This commit is contained in:
Tom Eastep 2010-09-19 15:10:21 -07:00
parent c7fc4ce1f5
commit 8bdd9828fd

View File

@ -903,6 +903,8 @@ sub process_interface( $$ ) {
$root = $interface;
}
fatal_error "Invalid interface name ($interface)" if $interface =~ /\*/;
my $physical = $interface;
my $broadcasts;
@ -1183,6 +1185,8 @@ sub known_interface($;$)
return $interfaceref if $interfaceref;
fatal_error "Invalid interface ($interface)" if $interface =~ /\*/;
for my $i ( @interfaces ) {
$interfaceref = $interfaces{$i};
my $root = $interfaceref->{root};