Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Robert Lubos <[email protected]>
- Loading branch information