Skip to content

Commit

Permalink
coap_net.c: Stop unnecessary coap_lg_crcv_t generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Jun 28, 2024
1 parent 3c720f2 commit 319ffb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/coap_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -4005,9 +4005,10 @@ coap_dispatch(coap_context_t *context, coap_session_t *session,
* options.
*/
if (sent &&
!coap_check_send_need_lg_crcv(session, pdu)) {
!coap_check_send_need_lg_crcv(session, pdu) &&
COAP_PDU_IS_REQUEST(sent->pdu)) {
/*
* lg_crcv was not set up in coap_send(). It coud have been set up
* lg_crcv was not set up in coap_send(). It could have been set up
* the first separate response.
* See if there already is a lg_crcv set up.
*/
Expand Down

0 comments on commit 319ffb0

Please sign in to comment.