mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 03:40:39 +03:00
coap_uri.c: Fix parsing Unix Domains
This commit is contained in:
1 parent
cc9aba6e01
commit
d2d9bd2b6d
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user