diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2010-11-16 23:38:13 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-22 07:54:53 +0300 |
commit | b64791c7e45b09615ea5528e104d059a85b745e6 (patch) | |
tree | dcb776e7e699502564ab777b29832b660e5369f0 /deps | |
parent | 611dffabb6b6b88f7a1f4ca259d19a42f0e8359c (diff) |
Fix c-ares bug: reply to a CNAME query
doesn't contain addresses, causing ares_parse_a_reply() to bail out with
ARES_ENODATA.
Diffstat (limited to 'deps')
-rw-r--r-- | deps/c-ares/ares_parse_a_reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/c-ares/ares_parse_a_reply.c b/deps/c-ares/ares_parse_a_reply.c index 86112d75be9..72fd060d748 100644 --- a/deps/c-ares/ares_parse_a_reply.c +++ b/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; if (status == ARES_SUCCESS) { |