forked from extern/shorewall_code
Correct validation of string interface options.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d365a9ff18
commit
363b8f9802
@ -1315,7 +1315,7 @@ sub process_interface( $$ ) {
|
||||
assert(0);
|
||||
}
|
||||
} elsif ( $type == STRING_IF_OPTION ) {
|
||||
fatal_error "The '$option' option requires a value" unless defined $value;
|
||||
fatal_error "The '$option' option requires a value" unless supplied $value;
|
||||
|
||||
if ( $option eq 'physical' ) {
|
||||
fatal_error "Invalid interface name ($interface)" if $interface =~ /[()\[\]\*\?%]/;
|
||||
|
Loading…
Reference in New Issue
Block a user