2012-04-22 04:21:26 +02:00
|
|
|
--- socket.c.orig
|
2006-12-19 00:17:59 +01:00
|
|
|
+++ socket.c
|
2012-04-22 04:21:26 +02:00
|
|
|
@@ -270,7 +270,6 @@ sock_hostname(struct host_info *host)
|
2006-12-19 00:17:59 +01:00
|
|
|
res = res->ai_next;
|
|
|
|
}
|
|
|
|
|
|
|
|
- freeaddrinfo (resbase);
|
|
|
|
|
|
|
|
if (res == NULL)
|
|
|
|
{
|
2012-04-22 04:21:26 +02:00
|
|
|
@@ -279,6 +278,7 @@ sock_hostname(struct host_info *host)
|
2006-12-19 00:17:59 +01:00
|
|
|
host->name,
|
|
|
|
inet_ntop2 (sin6->sin6_family, &sin6->sin6_addr));
|
|
|
|
strncpy(host->name, paranoid, sizeof(host->name));
|
|
|
|
+ freeaddrinfo (resbase);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-04-22 04:21:26 +02:00
|
|
|
@@ -289,7 +289,7 @@ sock_hostname(struct host_info *host)
|
2006-12-19 00:17:59 +01:00
|
|
|
host->name, res->ai_canonname,
|
|
|
|
inet_ntop2 (sin6->sin6_family, &sin6->sin6_addr));
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+ freeaddrinfo (resbase);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
#else /* INET6 */
|