mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 18:43:50 +01:00
In case no payload is added, `coap_build_reply_header()` would return `sizeof(coap_hdr_t) + token_length` regardless of the actual header length returned by `coap_build_hdr()`. These can be different if RFC 8974 extended tokens are enabled (module `nanocoap_token_ext` used): If an extended token length field is used, its size is not considered. Co-authored-by: benpicco <benpicco@googlemail.com>