1
0
mirror of https://github.com/obgm/libcoap.git synced 2025-10-14 02:19:34 +08:00

coap_uri.c: Fix parsing Unix Domains

This commit is contained in:
Jon Shallow
2025-09-20 13:21:16 +01:00
committed by Jon Shallow
parent 67dbe5ac36
commit c12193fdef

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