Skip to content

Commit

Permalink
fixup! sys/net/application_layer/gcoap: keep request on observe notif…
Browse files Browse the repository at this point in the history
…ication
  • Loading branch information
MichelRottleuthner committed Nov 14, 2023
1 parent 4e2febc commit 7315614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/net/application_layer/gcoap/gcoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,9 @@ static void _process_coap_pdu(gcoap_socket_t *sock, sock_udp_ep_t *remote, sock_

/* The memo must be kept if the response is an observe notification.
* Non-2.xx notifications indicate that the associated observe entry
* was removed on the server side. Then also remove it here. */
* was removed on the server side. Then also free the memo here. */
if (!observe_notification || (code_class != COAP_CLASS_SUCCESS)) {
/* setting the state to unused frees (drops) the memo entry */
memo->state = GCOAP_MEMO_UNUSED;
}

Expand Down

0 comments on commit 7315614

Please sign in to comment.