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.
pull/1/head
Yang Tse 14 years ago
parent 85520d66e0
commit 461fa89e0a
  1. 2
      ares_getnameinfo.c

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

Loading…
Cancel
Save