From c12193fdef422c5b775ba71b69a508ef1092048e Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sat, 20 Sep 2025 13:21:16 +0100 Subject: [PATCH] coap_uri.c: Fix parsing Unix Domains --- src/coap_uri.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coap_uri.c b/src/coap_uri.c index d299fe4d..eef07b31 100644 --- a/src/coap_uri.c +++ b/src/coap_uri.c @@ -179,12 +179,12 @@ coap_split_uri_sub(const uint8_t *str_var, /* p points to beginning of Uri-Host */ q = p; if (len && *p == '[') { - /* IPv6 address reference */ + /* IPv6 address reference or Unix domain */ ++p; ++q; --len; - while (len && *q != ']' && (isxdigit(*q) || *q == ':')) { + while (len && *q != ']') { ++q; --len; }