coap_uri.c: Fix parsing Unix Domains

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-09-20 13:53:02 +01:00
1 parent 67dbe5ac36
commit c12193fdef
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}