Skip to content
Commit 5bb35892 authored by Robert Lubos's avatar Robert Lubos Committed by Jukka Rissanen
Browse files

net: coap: Parse zero-length option correctly



In case CoAP packet does not carry payload, and the last option is
zero-length, the option structure was not filled with data (opt number
and length). Fix the length check to prevent this from happening.

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