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

change (getaddrinfo.c rev 1.12).
This commit is contained in:
Hajimu UMEMOTO 2000-07-07 20:46:37 +00:00
parent 18601b5712
commit 2aaae1eaf7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62788

View File

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