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:
parent
79d0212f03
commit
7b1c9dcfd4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue