Avoid undefined value error

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8472 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-04-21 20:17:04 +00:00
parent 39eb7a3d1f
commit 039a875b70

View File

@ -1419,7 +1419,7 @@ sub get_set_flags( $$ ) {
sub match_source_net( $;$ ) {
my ( $net, $restriction) = @_;
$restriction |= NO_RESTRICT;
$restriction ||= NO_RESTRICT;
if ( $net =~ /^(!?)(\d+\.\d+\.\d+\.\d+)-(\d+\.\d+\.\d+\.\d+)$/ ) {
my ($addr1, $addr2) = ( $2, $3 );