forked from extern/shorewall_code
Fix port range validate issue
This commit is contained in:
parent
92eed0d23c
commit
49053afdcb
@ -338,7 +338,7 @@ sub validate_portpair( $$ ) {
|
||||
|
||||
my @ports = split /:/, $portpair, 2;
|
||||
|
||||
$_ = validate_port( $proto, $_) for ( @ports );
|
||||
$_ = validate_port( $proto, $_) for ( grep $_, @ports );
|
||||
|
||||
if ( @ports == 2 ) {
|
||||
fatal_error "Invalid port range ($portpair)" unless $ports[0] < $ports[1];
|
||||
|
Loading…
Reference in New Issue
Block a user