mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-23 14:08:45 +01:00
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:
parent
39eb7a3d1f
commit
039a875b70
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user