mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 18:07:08 +03:00
fix: memory leak if client receives ACK response via OSCORE
This commit is contained in:
1 parent
4f38c3dfac
commit
f1b778352f
1 file changed
+4
@@ -3987,6 +3987,10 @@ coap_dispatch(coap_context_t *context, coap_session_t *session,
|
||||
|
||||
switch (pdu->type) {
|
||||
case COAP_MESSAGE_ACK:
|
||||
if (sent != NULL) {
|
||||
coap_delete_node_lkd(sent);
|
||||
}
|
||||
|
||||
/* find message id in sendqueue to stop retransmission */
|
||||
coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
|
||||
|
||||
|
||||
Reference in new issue
Block a user