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
|
|
|
@@ -282,7 +282,7 @@ sock_hostname(struct host_info *host)
|
2006-12-19 00:17:59 +01:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (STR_NE (host->name, res->ai_canonname) && STR_NE(host->name, "localhost"))
|
|
|
|
+ if ((!res->ai_canonname || STR_NE (host->name, res->ai_canonname)) && STR_NE(host->name, "localhost"))
|
|
|
|
{
|
|
|
|
/* We don't treat this as an error, though... */
|
|
|
|
tcpd_warn("host name mismatch: %s != %s (%s)",
|