From d2d9bd2b6d254be4112787867979b2895128b986 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 3544d10b..8e649247 100644 --- a/src/coap_uri.c +++ b/src/coap_uri.c @@ -174,12 +174,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; }