[ndnSIM] daemon: Fixing HopCount calculation when data is retrieved from CS

Change-Id: I3d16bcf29f4858049d101ab3e422e1a7131b3ba2
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index ecdce2e..b35a321 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -340,11 +340,14 @@
     return;
   }
 
+  shared_ptr<Data> dataCopyWithoutTag = make_shared<Data>(data);
+  dataCopyWithoutTag->removeTag<lp::HopCountTag>();
+
   // CS insert
   if (m_csFromNdnSim == nullptr)
-    m_cs.insert(data);
+    m_cs.insert(*dataCopyWithoutTag);
   else
-    m_csFromNdnSim->Add(data.shared_from_this());
+    m_csFromNdnSim->Add(dataCopyWithoutTag);
 
   std::set<Face*> pendingDownstreams;
   // foreach PitEntry