1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/net/application_layer/nanocoap
Benjamin Valentin 11e40a9d61 nanocoap_sock: fix wrong assertion
The assertion is a bit overeager.
In case of receiving a wrong message ID, we re-try receive without
entering the STATE_REQUEST_SEND state again, so it is expected that
we get a non-NULL ctx/response from sock_udp_recv_buf().

What this assert should actually check is that we don't get a non-NULL
ctx after calling sock_udp_recv_buf() with a non-NULL ctx.

So make this explicit to not falsely fail the assertion.
2022-06-16 18:54:16 +02:00
..
cache.c gcoap: reflect truncation with caching 2022-05-13 12:14:55 +02:00
Kconfig nanocoap: add cache for response messages 2022-05-10 18:43:56 +02:00
Makefile
nanocoap.c nanocoap: use uint8_t for szx value 2022-05-23 23:41:21 +02:00
sock.c nanocoap_sock: fix wrong assertion 2022-06-16 18:54:16 +02:00
vfs.c nanocoap_vfs: add nanocoap_vfs_put() 2022-06-08 17:19:03 +02:00