Skip to content

Commit

Permalink
coap_net.c: Remove un-needed coap_remove_from_queue() call
Browse files Browse the repository at this point in the history
Genuine separately initiated CON messages could be deleted if incoming
NON message has same MID.
  • Loading branch information
mrdeep1 committed Jan 6, 2025
1 parent 72190a8 commit 75b4322
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/coap_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -4318,8 +4318,6 @@ coap_dispatch(coap_context_t *context, coap_session_t *session,
goto cleanup;

case COAP_MESSAGE_NON:
/* find transaction in sendqueue in case large response */
coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
/* check for unknown critical options */
if (coap_option_check_critical(session, pdu, &opt_filter) == 0) {
packet_is_bad = 1;
Expand Down

0 comments on commit 75b4322

Please sign in to comment.