Correct validation of LOG_LEVEL

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-02-19 10:25:44 -08:00
parent 10b39f3855
commit 118e4f73c9
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -6475,7 +6475,12 @@ sub get_configuration( $$$$ ) {
default_log_level 'RELATED_LOG_LEVEL', '';
default_log_level 'INVALID_LOG_LEVEL', '';
default_log_level 'UNTRACKED_LOG_LEVEL', '';
default_log_level 'LOG_LEVEL', 'info';
if ( supplied( $val = $config{LOG_LEVEL} ) ) {
validate_level( $val );
} else {
$config{LOG_LEVEL} = 'info';
}
if ( supplied( $val = $config{LOG_BACKEND} ) ) {
if ( $family == F_IPV4 && $val eq 'ULOG' ) {