forked from extern/shorewall_code
Fix compiler crash from unknown interface
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cd3a9854f8
commit
7fef97d92d
@ -1814,7 +1814,7 @@ sub process_host( ) {
|
||||
$interface = $1;
|
||||
$hosts = $2;
|
||||
|
||||
fatal_error "Unknown interface ($interface)" unless ($interfaceref = $interfaces{$interface})->{root};
|
||||
fatal_error "Unknown interface ($interface)" unless ($interfaceref = $interfaces{$interface}) && $interfaceref->{root};
|
||||
} else {
|
||||
fatal_error "Invalid HOST(S) column contents: $hosts"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user