mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-11 03:10:40 +03:00
block.c: Fix data leak in coap_add_data_large_internal
This commit is contained in:
1 parent
eb7656850f
commit
d57d44aa14
1 file changed
+2
@@ -351,6 +351,8 @@ coap_add_data_large_internal(coap_session_t *session,
|
||||
assert(pdu);
|
||||
if (pdu->data) {
|
||||
coap_log(LOG_WARNING, "coap_add_data_large: PDU already contains data\n");
|
||||
if (release_func)
|
||||
release_func(session, app_ptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user