Explorar o código

Correct typo (name resolution could fail on some platforms)

z3APA3A %!s(int64=5) %!d(string=hai) anos
pai
achega
1fd759d327
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common.c

+ 1 - 1
src/common.c

@@ -911,7 +911,7 @@ unsigned long getip46(int family, unsigned char *name,  struct sockaddr *sa){
 
 	detect = afdetect(name);
 	if(detect != -1){
-		if(family == 4 && detect != 4) return 0;
+		if(family == 4 && detect != AF_INET) return 0;
 		*SAFAMILY(sa) = (family == 6)? AF_INET6 : detect;
 		return inet_pton(*SAFAMILY(sa), (char *)name, SAADDR(sa))? *SAFAMILY(sa) : 0; 
 	}