Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2010-11-16 23:38:13 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-22 07:54:53 +0300
commitb64791c7e45b09615ea5528e104d059a85b745e6 (patch)
treedcb776e7e699502564ab777b29832b660e5369f0 /deps
parent611dffabb6b6b88f7a1f4ca259d19a42f0e8359c (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.c2
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)
{