Add some insurance against wildcard interfaces

This commit is contained in:
Tom Eastep 2010-12-20 08:45:10 -08:00
parent 5c890938ed
commit 433b3fbd87

View File

@ -1358,7 +1358,14 @@ sub find_interfaces_by_option1( $ ) {
sub get_interface_option( $$ ) {
my ( $interface, $option ) = @_;
$interfaces{$interface}{options}{$option};
my $ref = $interfaces{$interface};
return $ref->{options}{$option} if $ref;
assert( $ref = known_interface( $interface ) );
$ref->{options}{$option};
}
#