This PR addresses an issue in function ccnl_content_add2cache in ccnl_relay.c. Currently, the function checks if the pointer passed to the function has been added before and hence, duplicate content is added to the content store. The function replaces the comparison of pointers with a call to ccnl_prefix_cmp which checks if the prefix content to be added exactly matches an existing entry in the content store.
Contribution description
This PR addresses an issue in function
ccnl_content_add2cache
inccnl_relay.c
. Currently, the function checks if the pointer passed to the function has been added before and hence, duplicate content is added to the content store. The function replaces the comparison of pointers with a call toccnl_prefix_cmp
which checks if the prefix content to be added exactly matches an existing entry in the content store.Issues/PRs references
Fixes #200