summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-17 19:09:50 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-17 19:09:50 +0000
commita8041047f4c21c83341bfd1f7cc5c111dd76e0db (patch)
treeb44874cb5e8ec680b9ca8029ed9693d5adba05a9 /libc/inet
parent4d52b7849a2b335ea2eb76ff8a3dba48291c2235 (diff)
Patch from Ronald Wahl fixing an IPV6 specific problem
with getaddrinfo().
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/resolv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index fee539c39..6083bad57 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1894,8 +1894,8 @@ int gethostbyaddr_r (const void *addr, socklen_t len, int type,
qp+=sizeof(*addr_list6)*2;
plen-=sizeof(*addr_list6)*2;
- if (len < buflen) {
- buflen=len;
+ if (plen < buflen) {
+ buflen=plen;
buf=qp;
}
#endif /* __UCLIBC_HAS_IPV6__ */