table: add Fib::afterNewNextHop signal
Refs: #4931
Change-Id: I68915b5f5688ad2f62147069fea86956a22672b6
diff --git a/daemon/nfd.cpp b/daemon/nfd.cpp
index 7877dea..63af6c7 100644
--- a/daemon/nfd.cpp
+++ b/daemon/nfd.cpp
@@ -170,7 +170,8 @@
// add FIB entry for NFD Management Protocol
Name topPrefix("/localhost/nfd");
- m_forwarder->getFib().insert(topPrefix).first->addOrUpdateNextHop(*m_internalFace, 0);
+ fib::Entry* entry = m_forwarder->getFib().insert(topPrefix).first;
+ m_forwarder->getFib().addOrUpdateNextHop(*entry, *m_internalFace, 0);
m_dispatcher->addTopPrefix(topPrefix, false);
}