Fix overoptimization of port list handling; prevent run-time error with bcast address in providers file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6343 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-14 14:14:38 +00:00
parent 31bf7d926b
commit 3aec0bd800
2 changed files with 3 additions and 0 deletions

View File

@ -863,6 +863,8 @@ sub do_proto( $$$ )
$ports = validate_portpair $ports; $ports = validate_portpair $ports;
$output .= "--dport $ports "; $output .= "--dport $ports ";
} }
} else {
$multiport = ( ( $sports =~ tr/,/,/ ) > 0 );
} }
if ( $sports ne '' ) { if ( $sports ne '' ) {

View File

@ -27,6 +27,7 @@ package Shorewall::Providers;
require Exporter; require Exporter;
use Shorewall::Common; use Shorewall::Common;
use Shorewall::Config; use Shorewall::Config;
use Shorewall::IPAddrs;
use Shorewall::Zones; use Shorewall::Zones;
use Shorewall::Chains; use Shorewall::Chains;