Fixing bugs with forwarding hints and registration/deregistration
We forgot to handle the case when forwarding hint is /, which should not
be ever de-registered.
Change-Id: I8aa45256151a4d5b1e0dc0ca3136aa6fb2e6e4a2
diff --git a/src/sync-log.cc b/src/sync-log.cc
index 5bd5703..47b1adf 100644
--- a/src/sync-log.cc
+++ b/src/sync-log.cc
@@ -369,15 +369,7 @@
void
SyncLog::UpdateLocalLocator (const Ccnx::Name &forwardingHint)
{
- if (m_localName.size () >= forwardingHint.size () &&
- m_localName.getPartialName (0, forwardingHint.size ()) == forwardingHint)
- {
- return UpdateLocator (m_localName, Name ("/")); // "directly" accesible
- }
- else
- {
- return UpdateLocator (m_localName, forwardingHint);
- }
+ return UpdateLocator (m_localName, forwardingHint);
}
SyncStateMsgPtr