Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA
change (getaddrinfo.c rev 1.12).
This commit is contained in:
parent
18601b5712
commit
2aaae1eaf7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62788
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user