Skip to content
Commit 64e5a31b authored by Robert Lubos's avatar Robert Lubos Committed by Benjamin Cabé
Browse files

net: coap: Fix coap_packet_is_request() check for empty code



Empty code was incorrectly matched as a request, fix that.

Align coap_handle_request_len() function to behave as documented in the
API documentation - in case of invalid request code (which is also the
case for empty code) -ENOTSUP Should be returned.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 13cd48a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment