mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-09 18:32:53 +03:00
coap_net.c: Remove un-needed coap_remove_from_queue() call
Genuine separately initiated CON messages could be deleted if incoming NON message has same MID.
This commit is contained in:
1 parent
72190a8854
commit
75b4322b0f
1 file changed
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user