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

net: coap: Fix response matching algorithm



The algorithm for matching request with response was incorrect, which
could lead to false matches (for example if request had a token, and
piggybacked reply had no token but matching message ID only, that would
still be counted as a match).

This commit fixes it. The request/reply matching is implemented based on
RFC now, with separate conditions for piggybacked/separate responses.

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