From 3d3f0a71c57c9cc0591e7a4c236440f3a0ec5bb7 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 18 Apr 2008 00:09:06 +0000 Subject: [PATCH] Handling missing 'min' in connbytes git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8428 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index b20cf0903..484b91030 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1326,7 +1326,7 @@ sub do_connbytes( $ ) { 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 $dir = $5 || 'B'; my $mode = $6 || 'B';