mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +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) {
|
switch (pdu->type) {
|
||||||
case COAP_MESSAGE_ACK:
|
case COAP_MESSAGE_ACK:
|
||||||
if (sent != NULL) {
|
if (NULL == sent) {
|
||||||
coap_delete_node_lkd(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) {
|
if (sent && session->con_active) {
|
||||||
session->con_active--;
|
session->con_active--;
|
||||||
if (session->state == COAP_SESSION_STATE_ESTABLISHED)
|
if (session->state == COAP_SESSION_STATE_ESTABLISHED)
|
||||||
|
|||||||
Reference in new issue
Block a user