diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 20e2fee9f..e7c41f0c6 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -783,6 +783,8 @@ sub validate_portpair( $ ) { } fatal_error "Invalid/Unknown port/service ($port)" unless defined $value; + + $port = $value; } if ( @ports == 2 ) {