aboutsummaryrefslogtreecommitdiff
path: root/contrib/telnet
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2000-07-08 05:22:00 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2000-07-08 05:22:00 +0000
commit1c6090341433c667065538f5f64b86ead1b91d49 (patch)
tree952ef0e0c07b570fb4aad64de3b4e30b5ce99620 /contrib/telnet
parentf8c9c11c5c78be7c50b4c97ae91d862feb195746 (diff)
downloadsrc-1c6090341433c667065538f5f64b86ead1b91d49.tar.gz
src-1c6090341433c667065538f5f64b86ead1b91d49.zip
Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA
change (getaddrinfo.c rev 1.12).
Notes
Notes: svn path=/head/; revision=62805
Diffstat (limited to 'contrib/telnet')
-rw-r--r--contrib/telnet/telnet/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index bc683c70c7f7..86544e76758d 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -2430,7 +2430,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);
}
@@ -3159,7 +3159,7 @@ sourceroute(ai, arg, cpp, lenp, protop, optp)
hints.ai_flags = AI_NUMERICHOST;
error = getaddrinfo(cp, NULL, &hints, &res);
- if (error == EAI_NONAME) {
+ if (error == EAI_NODATA) {
hints.ai_flags = 0;
error = getaddrinfo(cp, NULL, &hints, &res);
}