mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-01 15:35:46 +03:00
COAP_OPT_BLOCK_LAST(opt) may return NULL, so doing *COAP_OPT_BLOCK_LAST(opt) is unsafe. Replace indirect with COAP_OPT_BLOCK_END_BYTE(opt).
COAP_OPT_BLOCK_LAST(opt) may return NULL, so doing *COAP_OPT_BLOCK_LAST(opt) is unsafe. Replace indirect with COAP_OPT_BLOCK_END_BYTE(opt).