Skip to content

Commit

Permalink
Unbreak "paranoid" host checking, which was broken with the IPv6 code
Browse files Browse the repository at this point in the history
import.

Submitted by:	Tony Finch <[email protected]>
  • Loading branch information
Kris Kennaway authored and Kris Kennaway committed Jul 4, 2001
1 parent 1b40f8c commit c16e19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/tcp_wrappers/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c16e19c

Please sign in to comment.