Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA
change (getaddrinfo.c rev 1.12).
This commit is contained in:
parent
f8c9c11c5c
commit
1c60903414
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62805
@ -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);
|
||||
}
|
||||
|
@ -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
Block a user