commit | 5978eb703ce0e64dd778a88c1ffffb76fe5e2202 | [log] [tgz] |
---|---|---|
author | Timo Teräs <timo.teras@iki.fi> | Tue Mar 22 16:27:51 2016 +0200 |
committer | Rich Felker <dalias@aerifal.cx> | Thu Mar 24 13:48:47 2016 -0400 |
tree | 7a44fa3793c67e242fb63d3da2f79892c5e94237 | |
parent | d578c74e677c9c29bfa0b5eec1f21506b9c05558 [diff] |
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 66e0330..0f1e61a 100644 --- a/src/network/gethostbyaddr_r.c +++ b/src/network/gethostbyaddr_r.c
@@ -64,6 +64,7 @@ } h->h_addrtype = af; + h->h_length = l; h->h_name = h->h_aliases[0]; *res = h; return 0;