Skip to content
Commit 7aa22317 authored by Robert Chou's avatar Robert Chou Committed by Jukka Rissanen
Browse files

net: coap: empty payload with payload marker is malformed



From RFC 7252, section 3
"The absence of the Payload Marker denotes a zero-length payload.
The presence of a marker followed by a zero-length payload MUST
be processed as a message format error."

Check empty payload when COAP_MARKER is found and add a test case to
cover it

Signed-off-by: default avatarRobert Chou <robert.ch.chou@acer.com>
parent c1881b22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment