mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-05 18:49:50 +00:00
Handle CNAME-only in ares_parse_aaaa_reply().
posted to the c-ares list by Peter Griess <pg@std.in>.
This commit is contained in:
@ -204,7 +204,9 @@ int ares_parse_aaaa_reply(const unsigned char *abuf, int alen,
|
||||
}
|
||||
}
|
||||
|
||||
if (status == ARES_SUCCESS && naddrs == 0)
|
||||
/* the check for naliases to be zero is to make sure CNAME responses
|
||||
don't get caught here */
|
||||
if (status == ARES_SUCCESS && naddrs == 0 && naliases == 0)
|
||||
status = ARES_ENODATA;
|
||||
if (status == ARES_SUCCESS)
|
||||
{
|
||||
|
Reference in New Issue
Block a user