Change a fatal_error() call with an assertion in add_policy_rules()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2018-01-19 13:39:51 -08:00
parent 85cae3c7f8
commit 97de2be778
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1005,7 +1005,7 @@ sub add_policy_rules( $$$$$ ) {
}
log_rule $loglevel , $chainref , $target , '' if $loglevel ne '';
fatal_error "Null target in policy_rules()" unless $target;
assert( $target );
if ( $target eq 'BLACKLIST' ) {
my ( $dbl_type, $dbl_ipset, $dbl_level, $dbl_tag ) = split( ':', $config{DYNAMIC_BLACKLIST} );