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-08 05:22:00 +00:00
parent f8c9c11c5c
commit 1c60903414
2 changed files with 4 additions and 4 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);
}

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