mirror of
https://git.musl-libc.org/git/musl
synced 2025-03-15 15:12:58 +03:00
fix gethostbyaddr_r to fill struct hostent.h_length as appropriate
This commit is contained in:
parent
d578c74e67
commit
5978eb703c
@ -64,6 +64,7 @@ int gethostbyaddr_r(const void *a, socklen_t l, int af,
|
||||
}
|
||||
|
||||
h->h_addrtype = af;
|
||||
h->h_length = l;
|
||||
h->h_name = h->h_aliases[0];
|
||||
*res = h;
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user