mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 18:13:13 +01:00
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