From 7c89af0d7dc3fa2c60389af6c5b522cf34ca06a3 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Thu, 15 Oct 2026 15:49:05 +0100 Subject: [PATCH] coap_pdu.c: Length of zero is valid for Option Query --- src/coap_pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coap_pdu.c b/src/coap_pdu.c index d25ffe97..4a3e4614 100644 --- a/src/coap_pdu.c +++ b/src/coap_pdu.c @@ -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: