One more EAI_NONAME -> EAI_NODATA issue.
This commit is contained in:
parent
2aaae1eaf7
commit
eea0015e6d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user