projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prevent CNAME/PTR parsing from reading data past the response end
[musl]
/
src
/
network
/
inet_pton.c
diff --git
a/src/network/inet_pton.c
b/src/network/inet_pton.c
index
d36c368
..
bcbdd9e
100644
(file)
--- a/
src/network/inet_pton.c
+++ b/
src/network/inet_pton.c
@@
-54,6
+54,7
@@
int inet_pton(int af, const char *restrict s, void *restrict a0)
if (s[j]!='.' || (i<6 && brk<0)) return 0;
need_v4=1;
i++;
+ ip[i&7]=0;
break;
}
s += j+1;