summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-07-07 20:46:37 +0000
committerume <ume@FreeBSD.org>2000-07-07 20:46:37 +0000
commit4dac3268003aae25607fb71da3f443aec60ba669 (patch)
treeec29fdea70a4eb6ca313e83d8ccb14ec761d1977 /usr.bin/telnet
parent1ee4aa44d5262624b0ad5489d24504f7f8e19074 (diff)
downloadFreeBSD-src-4dac3268003aae25607fb71da3f443aec60ba669.zip
FreeBSD-src-4dac3268003aae25607fb71da3f443aec60ba669.tar.gz
Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA
change (getaddrinfo.c rev 1.12).
Diffstat (limited to 'usr.bin/telnet')
-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 7adddd6..3a726ee 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);
}
OpenPOWER on IntegriCloud