Handle CNAME-only in ares_parse_aaaa_reply().

posted to the c-ares list by Peter Griess <pg@std.in>.
pull/14/head
Guenter Knauf 13 years ago
parent 2c67ce6459
commit b3afe9cbde
  1. 4
      ares_parse_aaaa_reply.c

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

Loading…
Cancel
Save