fix: OSCORE ACK retransmission handling

This commit is contained in:
Jon Shallow committed 2026-03-24 17:22:07 +00:00
1 parent 22ffdb0702
commit c024cc8e0e
1 file changed
+3 -5
+3 -5
View File
@@ -3987,13 +3987,11 @@ 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);
if (NULL == sent) {
/* find message id in sendqueue to stop retransmission */
coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
}
/* find message id in sendqueue to stop retransmission */
coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
if (sent && session->con_active) {
session->con_active--;
if (session->state == COAP_SESSION_STATE_ESTABLISHED)