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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user