Explorar o código

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

Eric Andersen %!s(int64=22) %!d(string=hai) anos
pai
achega
a8041047f4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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__ */