Unbreak "paranoid" host checking, which was broken with the IPv6 code

import.

Submitted by:	Tony Finch <dot@dotat.at>
This commit is contained in:
Kris Kennaway 2001-07-04 20:16:18 +00:00
parent 1b40f8c036
commit c16e19ce77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79249

View file

@ -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",