From ea759e7bceaf9e08ac8239a16555d67003e1cdc4 Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Sun, 12 Jan 2014 21:11:15 +0000
Subject: [PATCH] Fix bug in getting match priority

---
 opentrafficshaper/plugins/tc/tc.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opentrafficshaper/plugins/tc/tc.pm b/opentrafficshaper/plugins/tc/tc.pm
index 5f99ea2..abf2fa1 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})) {
-- 
GitLab