mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-19 05:59:05 +03:00
coap_pdu.c: Length of zero is valid for Option Query
This commit is contained in:
1 parent
892aa2036f
commit
7c89af0d7d
1 file changed
+1
-1
+1
-1
@@ -1344,7 +1344,7 @@ coap_pdu_parse_opt_base(coap_option_num_t number, size_t len, const uint8_t *opt
|
||||
res = 0;
|
||||
break;
|
||||
case COAP_OPTION_URI_QUERY:
|
||||
if (len < 1 || len > 255)
|
||||
if (len > 255)
|
||||
res = 0;
|
||||
break;
|
||||
case COAP_OPTION_HOP_LIMIT:
|
||||
|
||||
Reference in new issue
Block a user