logic: Fixed empty digest comparison

Change-Id: I2a6606d886e29f8ee781beea10c81519950fb734
Refs: #3927
diff --git a/src/logic.cpp b/src/logic.cpp
index 366ffbc..a110328 100644
--- a/src/logic.cpp
+++ b/src/logic.cpp
@@ -421,7 +421,7 @@
   }
 
   // If the digest of incoming interest is an "empty" digest
-  if (digest == EMPTY_DIGEST) {
+  if (*digest == *EMPTY_DIGEST) {
     _LOG_DEBUG_ID("Poor guy, he knows nothing");
     sendSyncData(m_defaultUserPrefix, name, m_state);
     return;