aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light')
-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;