cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

fixes ccnl_content_add2cache prefix comparison #266

Closed mfrey closed 6 years ago

mfrey commented 6 years ago

Contribution description

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.

Issues/PRs references

Fixes #200