mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 14:29:05 +03:00
added small comment
This commit is contained in:
1 parent
118a17cb86
commit
a5c5f75722
1 file changed
+1
@@ -106,6 +106,7 @@ coap_delete_pdu(coap_pdu_t *pdu) {
|
||||
int
|
||||
coap_add_token(coap_pdu_t *pdu, size_t len, const unsigned char *data) {
|
||||
const size_t HEADERLENGTH = len + 4;
|
||||
/* must allow for pdu == NULL as callers may rely on this */
|
||||
if (!pdu || len > 8 || pdu->max_size < HEADERLENGTH)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user