model: Fixing bug with hop count tag related to caching of unsolicited data
diff --git a/model/fw/ndn-forwarding-strategy.cc b/model/fw/ndn-forwarding-strategy.cc
index 33f2942..2b026c9 100644
--- a/model/fw/ndn-forwarding-strategy.cc
+++ b/model/fw/ndn-forwarding-strategy.cc
@@ -398,8 +398,13 @@
 {
   if (m_cacheUnsolicitedData)
     {
+      FwHopCountTag hopCountTag;
+
+      Ptr<Packet> payloadCopy = payload->Copy ();
+      payloadCopy->RemovePacketTag (hopCountTag);
+
       // Optimistically add or update entry in the content store
-      m_contentStore->Add (header, payload);
+      m_contentStore->Add (header, payloadCopy);
     }
   else
     {