interest: Interest::matchesData function
refs #1157
Change-Id: I5b74367cb1afed75728e2d5092ced5d269332f9d
diff --git a/src/face.cpp b/src/face.cpp
index b2e98d1..04e2570 100644
--- a/src/face.cpp
+++ b/src/face.cpp
@@ -388,7 +388,7 @@
i != m_pendingInterestTable.end();
)
{
- if ((*i)->getInterest()->matchesName(data.getName()))
+ if ((*i)->getInterest()->matchesData(data))
{
// Copy pointers to the needed objects and remove the PIT entry before the calling the callback.
OnData onData = (*i)->getOnData();