summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
authordtucker <dtucker>2003-06-04 23:52:42 +0000
committerdtucker <dtucker>2003-06-04 23:52:42 +0000
commit7065624456cc7cd7f133e34021517eef4bc851af (patch)
tree760593ecdcede57466b71f454b4364aab94b909f /canohost.c
parent672cecbdca9c4fe778800471f8e62b886f719303 (diff)
downloadopenssh-7065624456cc7cd7f133e34021517eef4bc851af.tar.gz
Put AI_NUMERICHOST back where it belongs.
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/canohost.c b/canohost.c
index fd5c5817..533f2c24 100644
--- a/canohost.c
+++ b/canohost.c
@@ -93,7 +93,7 @@ get_remote_hostname(int socket, int use_dns)
*/
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_DGRAM; /*dummy*/
- hints.ai_flags = NI_NUMERICHOST;
+ hints.ai_flags = AI_NUMERICHOST;
if (getaddrinfo(name, "0", &hints, &ai) == 0) {
logit("Nasty PTR record \"%s\" is set up for %s, ignoring",
name, ntop);