aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-11-19 22:47:37 +0000
committerGerrit Code Review <gerrit@fd.io>2019-11-19 22:47:37 +0000
commit1d1c54db773d8b9f81f15295fe6ecea872ce2883 (patch)
tree89020f3b59b60b8b2f03e8d2a4f1d2c8557ddfc1
parent76b2abe3c15564fc61dd4ff1f0372f25fa8031f1 (diff)
parentc4d6c2b220e706b53dfb352d2203e2d23d1e76e7 (diff)
Merge "[HICN-400] fix NULL content name in PIT entry (temporary workaround)"
-rw-r--r--hicn-light/src/hicn/core/name.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/name.c b/hicn-light/src/hicn/core/name.c
index 7ef3fcc01..76efa6a8e 100644
--- a/hicn-light/src/hicn/core/name.c
+++ b/hicn-light/src/hicn/core/name.c
@@ -194,6 +194,11 @@ bool name_Equals(const Name *a, const Name *b) {
parcAssertNotNull(a, "Parameter a must be non-null");
parcAssertNotNull(b, "Parameter b must be non-null");
+ /* BEGIN: Workaround for HICN-400 */
+ if ((!a->content_name) || (!b->content_name))
+ return false;
+ /* END: Workaround for HICN-400 */
+
if ((nameBitvector_Equals(a->content_name, b->content_name) &&
a->segment == b->segment))
return true;