mgmt: fix InternalFace::processInterest crash when Interest is gone
Interest may be satisfied by Notification and be removed from PIT
between sendInterest and processInterest.
refs #1452
Change-Id: I0c3e05c34f0d8607d96dcfd156a3e87c1ecb26f2
diff --git a/daemon/mgmt/internal-face.hpp b/daemon/mgmt/internal-face.hpp
index 416850c..479f256 100644
--- a/daemon/mgmt/internal-face.hpp
+++ b/daemon/mgmt/internal-face.hpp
@@ -78,7 +78,7 @@
private:
void
- processInterest(const Interest& interest);
+ processInterest(weak_ptr<const Interest> interestWeak);
private:
std::map<Name, OnInterest> m_interestFilters;