coap_pdu.c: Length of zero is valid for Option Query

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2026-10-16 10:36:00 +01:00
1 parent 892aa2036f
commit 7c89af0d7d
1 file changed
+1 -1
+1 -1
View File
@@ -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: