Repair bug with zero-root digest detection
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index 7eba7c6..a5244df 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -92,13 +92,14 @@
}
// Special case when state is not empty and we have received request with zero-root digest
- if (digest->zero ())
+ if (digest->isZero ())
{
m_ccnxHandle->publishData (interestName + "/state",
lexical_cast<string> (m_state),
m_syncResponseFreshness);
return;
}
+
DiffStateContainer::iterator stateInDiffLog = m_log.find (digest);