cn-uofbasel / ccn-lite

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

ccnl-riot: exit early on error for ccnl_send_interest() #250

Closed cgundogan closed 6 years ago

cgundogan commented 6 years ago

Contribution description

Exit early in ccnl_send_interest() for the case, where pkt could not be created (e.g., when malloc fails due to low mem). Otherweise, pkt is NULL and accessed in subsequent functions.

Issues/PRs references

none

cgundogan commented 6 years ago

@mfrey how about this?

cgundogan commented 6 years ago

rebased onto master

cgundogan commented 6 years ago

rebased again