Handling missing 'min' in connbytes

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8428 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-04-18 00:09:06 +00:00
parent 8761025201
commit 3d3f0a71c5

View File

@ -1326,7 +1326,7 @@ sub do_connbytes( $ ) {
my $invert = $1 || ''; $invert = '! ' if $invert; my $invert = $1 || ''; $invert = '! ' if $invert;
my $min = $2 || ''; my $min = $2; $min = 0 unless defined $min;
my $max = $3 || ''; fatal_error "Invalid byte range ($min:$max)" if $max ne '' and $min > $max; my $max = $3 || ''; fatal_error "Invalid byte range ($min:$max)" if $max ne '' and $min > $max;
my $dir = $5 || 'B'; my $dir = $5 || 'B';
my $mode = $6 || 'B'; my $mode = $6 || 'B';