1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 04:49:41 +00:00

ares_getnameinfo: Partially revert commit 85520d66e0

Upon socket address family and length validation failure return ARES_ENOTIMP
in callback again, this is the error code documented in man page and used
mostly all over the library.
This commit is contained in:
Yang Tse
2010-11-16 20:15:55 +01:00
parent 85520d66e0
commit 461fa89e0a

View File

@ -114,7 +114,7 @@ void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa,
}
else
{
callback(arg, ARES_EBADFAMILY, 0, NULL, NULL);
callback(arg, ARES_ENOTIMP, 0, NULL, NULL);
return;
}