Fix port range validate issue

This commit is contained in:
Tom Eastep 2010-08-12 09:48:17 -07:00
parent 92eed0d23c
commit 49053afdcb

View File

@ -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];