Correct validation of string interface options.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-04-13 06:44:58 -07:00
parent d365a9ff18
commit 363b8f9802
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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 =~ /[()\[\]\*\?%]/;