mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 10:51:02 +01:00
Allow for adding zero-length command to rules array
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6946 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
1fa2db41a1
commit
46abc9b397
@ -1836,7 +1836,7 @@ sub assure_cat_state() {
|
||||
sub emitr( $ ) {
|
||||
my $rule = $_[0];
|
||||
|
||||
if ( substr( $rule, 0, 2 ) ne '-A' ) {
|
||||
if ( ! $rule || substr( $rule, 0, 2 ) ne '-A' ) {
|
||||
#
|
||||
# A command rather than a rule
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user