From 3f8ff29ecff43c04306d6bd9f109b222d3d68dc1 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 23 Jun 2011 10:53:44 +0200 Subject: [PATCH] bugfix: use correct id remove request from retransmission queue --- net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.c b/net.c index 077e133f..da1c01ce 100644 --- a/net.c +++ b/net.c @@ -789,7 +789,7 @@ coap_dispatch( coap_context_t *context ) { switch ( rcvd->pdu->hdr->type ) { case COAP_MESSAGE_ACK: /* find transaction in sendqueue to stop retransmission */ - coap_remove_from_queue(&context->sendqueue, rcvd->pdu->hdr->id, &sent); + coap_remove_from_queue(&context->sendqueue, rcvd->id, &sent); if (rcvd->pdu->hdr->code == 0) goto cleanup; break; @@ -802,7 +802,7 @@ coap_dispatch( coap_context_t *context ) { coap_log(LOG_ALERT, "got RST for message %u\n", ntohs(rcvd->pdu->hdr->id)); /* find transaction in sendqueue to stop retransmission */ - coap_remove_from_queue(&context->sendqueue, rcvd->pdu->hdr->id, &sent); + coap_remove_from_queue(&context->sendqueue, rcvd->id, &sent); break; case COAP_MESSAGE_NON : /* check for unknown critical options */