mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 18:07:08 +03:00
fix: OSCORE ACK retransmission handling
This commit is contained in:
1 parent
22ffdb0702
commit
c024cc8e0e
1 file changed
+3
-5
+3
-5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user