forked from extern/shorewall_code
Add some insurance against wildcard interfaces
This commit is contained in:
parent
5c890938ed
commit
433b3fbd87
@ -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};
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user