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; }