summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2000-07-07 20:46:37 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2000-07-07 20:46:37 +0000
commit2aaae1eaf7083e17460bae4c8f41e2bd67b45b45 (patch)
tree7a3d71d7cde4f60f4401cc90e4a83c9a686a2905
parent18601b5712385c88e00674c18a4b9e0220291876 (diff)
Notes
-rw-r--r--usr.bin/telnet/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c
index 7adddd696bff..3a726eefa725 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);
}