diff options
author | kris <kris@FreeBSD.org> | 2001-07-04 20:16:18 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-07-04 20:16:18 +0000 |
commit | 76f9847f71069e068130183f9680bc5213c8b54f (patch) | |
tree | ab2977ce9f31c55b23b09f375395a395cd8b9276 /contrib | |
parent | f45603dee91ec143aeff8dddbe83dba33b392b43 (diff) | |
download | FreeBSD-src-76f9847f71069e068130183f9680bc5213c8b54f.zip FreeBSD-src-76f9847f71069e068130183f9680bc5213c8b54f.tar.gz |
Unbreak "paranoid" host checking, which was broken with the IPv6 code
import.
Submitted by: Tony Finch <dot@dotat.at>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/tcp_wrappers/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tcp_wrappers/socket.c b/contrib/tcp_wrappers/socket.c index 47f3df6..e53d5c3 100644 --- a/contrib/tcp_wrappers/socket.c +++ b/contrib/tcp_wrappers/socket.c @@ -222,7 +222,7 @@ struct host_info *host; hints.ai_family = sin->sa_family; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST; - if ((err = getaddrinfo(host->name, NULL, &hints, &res0) == 0)) { + if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) { freeaddrinfo(res0); tcpd_warn("host name/name mismatch: " "reverse lookup results in non-FQDN %s", |