Browse Source

Fix c-ares bug: reply to a CNAME query

doesn't contain addresses, causing ares_parse_a_reply() to bail out with
ARES_ENODATA.
v0.7.4-release
Ben Noordhuis 14 years ago
committed by Ryan Dahl
parent
commit
b64791c7e4
  1. 2
      deps/c-ares/ares_parse_a_reply.c

2
deps/c-ares/ares_parse_a_reply.c

@ -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; status = ARES_ENODATA;
if (status == ARES_SUCCESS) if (status == ARES_SUCCESS)
{ {

Loading…
Cancel
Save