Correct action dport implementation

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2020-06-26 16:55:39 -07:00
parent 28b92dae32
commit 43ac903085
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1033,7 +1033,7 @@ sub add_policy_rules( $$$$$ ) {
# Policy action is a regular action -- jump to the action chain
#
if ( ( my $proto = determine_action_protocol( $action, '-' ) ) ne '-' ) {
if ( my $dport = determine_action_dport( $action, $proto, '-' ) ) {
if ( my $dport = determine_action_dport( $action, $proto, '' ) ) {
add_ijump( $chainref, j => use_policy_action( $paction, $chainref->{name} ), p => $proto, dport => $dport );
} else {
add_ijump( $chainref, j => use_policy_action( $paction, $chainref->{name} ), p => $proto );