projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix gethostby*_r result pointer value on error
[musl]
/
src
/
network
/
gethostbyname2_r.c
diff --git
a/src/network/gethostbyname2_r.c
b/src/network/gethostbyname2_r.c
index
aa8b0a9
..
81f71d2
100644
(file)
--- a/
src/network/gethostbyname2_r.c
+++ b/
src/network/gethostbyname2_r.c
@@
-17,6
+17,7
@@
int gethostbyname2_r(const char *name, int af,
int i, cnt;
size_t align, need;
+ *res = 0;
cnt = __lookup_name(addrs, canon, name, af, AI_CANONNAME);
if (cnt<0) switch (cnt) {
case EAI_NONAME: