Closed mfrey closed 6 years ago
This issue was identified by clangs static analyzer ("argument with 'nonnull' attribute passed null"). If the check in
415 md = (prefix->compcnt - p->compcnt == 1) ? compute_ccnx_digest(c->pkt->buf) : NULL;
would fail, the subsequent call to
416 return ccnl_prefix_cmp(p, md, prefix, CMP_MATCH) == prefix->compcnt;
might also fail (i.e. md is NULL).
md
NULL
Contribution description
This issue was identified by clangs static analyzer ("argument with 'nonnull' attribute passed null"). If the check in
would fail, the subsequent call to
might also fail (i.e.
md
isNULL
).