From: Timo Teräs Date: Tue, 22 Mar 2016 14:27:51 +0000 (+0200) Subject: fix gethostbyaddr_r to fill struct hostent.h_length as appropriate X-Git-Tag: v1.1.15~74 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5978eb703ce0e64dd778a88c1ffffb76fe5e2202;p=oweals%2Fmusl.git fix gethostbyaddr_r to fill struct hostent.h_length as appropriate --- diff --git a/src/network/gethostbyaddr_r.c b/src/network/gethostbyaddr_r.c index 66e03309..0f1e61aa 100644 --- a/src/network/gethostbyaddr_r.c +++ b/src/network/gethostbyaddr_r.c @@ -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;