summaryrefslogtreecommitdiffstats
path: root/contrib/telnet/telnet
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-07-08 05:22:00 +0000
committerume <ume@FreeBSD.org>2000-07-08 05:22:00 +0000
commit4eacfb7489a6acf66c3b7463cb5011e202028f19 (patch)
tree1a33e2e0f970f23320a730ca57955c747b3f5aa1 /contrib/telnet/telnet
parent1332543d7695dd9dc19055ab38090131deccf7d2 (diff)
downloadFreeBSD-src-4eacfb7489a6acf66c3b7463cb5011e202028f19.zip
FreeBSD-src-4eacfb7489a6acf66c3b7463cb5011e202028f19.tar.gz
Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA
change (getaddrinfo.c rev 1.12).
Diffstat (limited to 'contrib/telnet/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 bc683c7..86544e7 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);
}
OpenPOWER on IntegriCloud