Browse Source

Patch from Ronald Wahl fixing an IPV6 specific problem
with getaddrinfo().

Eric Andersen 22 years ago
parent
commit
a8041047f4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/inet/resolv.c

+ 2 - 2
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__ */