Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA

change (getaddrinfo.c rev 1.12).


git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@62805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
ume 2000-07-08 05:22:00 +00:00
parent 79d0212f03
commit 7b1c9dcfd4
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}