table: NameTree findExactMatch, findLongestPrefixMatch return Entry*
refs #3687
Change-Id: I32752fd711b9641228fbb7f356e72144780cf9ec
diff --git a/daemon/table/pit.cpp b/daemon/table/pit.cpp
index de6c9da..06dab3e 100644
--- a/daemon/table/pit.cpp
+++ b/daemon/table/pit.cpp
@@ -66,9 +66,9 @@
const Name& nteName = isEndWithDigest ? name.getPrefix(-1) : name;
// ensure NameTree entry exists
- shared_ptr<name_tree::Entry> nte;
+ name_tree::Entry* nte = nullptr;
if (allowInsert) {
- nte = m_nameTree.lookup(nteName);
+ nte = m_nameTree.lookup(nteName).get();
BOOST_ASSERT(nte != nullptr);
}
else {