coap_uri.c: Fix parsing Unix Domains

This commit is contained in:
Jon Shallow committed 2025-09-20 14:04:03 +01:00
1 parent cc9aba6e01
commit d2d9bd2b6d
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}