One more EAI_NONAME -> EAI_NODATA issue.

This commit is contained in:
Hajimu UMEMOTO 2000-07-07 21:05:55 +00:00
parent 2aaae1eaf7
commit eea0015e6d

View File

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