From 2aaae1eaf7083e17460bae4c8f41e2bd67b45b45 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Fri, 7 Jul 2000 20:46:37 +0000 Subject: [PATCH] Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA change (getaddrinfo.c rev 1.12). --- usr.bin/telnet/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 7adddd696bf..3a726eefa72 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -2254,7 +2254,7 @@ tn(argc, argv) hints.ai_family = family; hints.ai_socktype = SOCK_STREAM; error = getaddrinfo(src_addr, 0, &hints, &src_res); - if (error == EAI_NONAME) { + if (error == EAI_NODATA) { hints.ai_flags = 0; error = getaddrinfo(src_addr, 0, &hints, &src_res); }