mirror of https://github.com/nodejs/node.git
Fix c-ares bug: reply to a CNAME query
doesn't contain addresses, causing ares_parse_a_reply() to bail out with ARES_ENODATA.pull/22966/head
parent
611dffabb6
commit
b64791c7e4
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue