1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-05 13:59:30 +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:
Guenter Knauf
2012-04-19 19:27:02 +02:00
parent 2c67ce6459
commit b3afe9cbde

View File

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