diff --git a/opentrafficshaper/plugins/tc/tc.pm b/opentrafficshaper/plugins/tc/tc.pm index 5f99ea219a1229eda03a0a1326e00cfe0581ea52..abf2fa1f532414da38d53568c5abc25841866c81 100644 --- a/opentrafficshaper/plugins/tc/tc.pm +++ b/opentrafficshaper/plugins/tc/tc.pm @@ -483,7 +483,7 @@ sub _session_poolmember_add my $txInterface = getPoolTxInterface($pool->{'ID'}); my $rxInterface = getPoolRxInterface($pool->{'ID'}); my $trafficPriority = getTrafficClassPriority($pool->{'ClassID'}); - my $matchPriority = getPoolMemberMatchPriority($pool->{'ID'}); + my $matchPriority = getPoolMemberMatchPriority($poolMember->{'ID'}); # Check if we have a entry for the /8, if not we must create our 2nd level hash table and link it if (!defined($tcFilterMappings->{$txInterface}->{'dst'}->{$matchPriority}->{$ip1})) {