logic: do not process exclude interests
refs: #4209, #4179
Change-Id: I74583d0d34d6e8db0cbfa844f5f47d4633f38849
diff --git a/src/logic.cpp b/src/logic.cpp
index df0fcd1..d3e5f11 100644
--- a/src/logic.cpp
+++ b/src/logic.cpp
@@ -320,7 +320,8 @@
else if (name.size() >= 2 && RECOVERY_COMPONENT == name.get(-2)) {
processRecoveryInterest(interest);
}
- else {
+ // Do not process exclude interests, they should be answered by CS
+ else if (interest.getExclude().empty()) {
processSyncInterest(interest.shared_from_this());
}