Fixing bug in consumer:send wrong interest name to fetch D-Key data
Change-Id: Ifa1425cbfdbc62fa1ed867daa6a5a39c6cdc17f5
diff --git a/src/consumer.cpp b/src/consumer.cpp
index f515652..edc1cf6 100644
--- a/src/consumer.cpp
+++ b/src/consumer.cpp
@@ -202,7 +202,9 @@
// get the D-Key Data
Name interestName = dKeyName;
interestName.append(NAME_COMPONENT_FOR).append(m_consumerName);
- shared_ptr<Interest> interest = make_shared<Interest>(dKeyName);
+
+ // fix bug here in Nov.23.2015 : change dKeyName to interestName
+ shared_ptr<Interest> interest = make_shared<Interest>(interestName);
// prepare callback functions
auto onData = [=] (const Interest& dKeyInterest, const Data& dKeyData) {