diff options
author | 2019-11-19 17:49:30 +0100 | |
---|---|---|
committer | 2019-11-19 17:49:30 +0100 | |
commit | c4d6c2b220e706b53dfb352d2203e2d23d1e76e7 (patch) | |
tree | 688f88364f3b62f109ab1e9ba474d8ed1681086e | |
parent | 40fde5ad542c30e59ac02639e29389085de89de5 (diff) |
[HICN-400] fix NULL content name in PIT entry (temporary workaround)
Change-Id: I6a1d93a4e6beb78741d8243fc78d6ecff77b9034
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
-rw-r--r-- | hicn-light/src/hicn/core/name.c | 5 |
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; |