Coverity: Fix reported errors

CID 1667634
CID 1667636
CID 1667638
CID 1667639
CID 1667641
CID 1667642
CID 1667644
CID 1667646
CID 1667647
CID 1667649
CID 1667650
CID 1667651
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-12-19 16:57:45 +00:00
1 parent 43bb86df92
commit bcee6f7149
7 files changed
+37 -15

No files matched your search

+1
View File
@@ -208,6 +208,7 @@ coap_new_cache_entry_lkd(coap_session_t *session, const coap_pdu_t *pdu,
}
entry->cache_key = coap_cache_derive_key(session, pdu, session_based);
if (!entry->cache_key) {
coap_delete_pdu_lkd(entry->pdu);
coap_free_type(COAP_CACHE_ENTRY, entry);
return NULL;
}