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
Ben Noordhuis 2010-11-16 21:38:13 +01:00 committed by Ryan Dahl
parent 611dffabb6
commit b64791c7e4
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{