diff --git a/deps/c-ares/ares_parse_a_reply.c b/deps/c-ares/ares_parse_a_reply.c index 86112d75be9..72fd060d748 100644 --- a/deps/c-ares/ares_parse_a_reply.c +++ b/deps/c-ares/ares_parse_a_reply.c @@ -201,7 +201,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen, } } - if (status == ARES_SUCCESS && naddrs == 0) + if (status == ARES_SUCCESS && naddrs == 0 && naliases == 0) status = ARES_ENODATA; if (status == ARES_SUCCESS) {