aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyname.c
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sesse@google.com>2007-11-15 08:36:25 +0000
committerSteinar H. Gunderson <sesse@google.com>2007-11-15 08:36:25 +0000
commit17fde12fb853c59a026fb5de50d6472af682a956 (patch)
tree290397a1a098fbed16716d762d926e3292dbcec3 /ares/ares_gethostbyname.c
parent5c8b973d4f3d860c7fa8cc96be4741a2eb4c1438 (diff)
Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. Patch from the Google tree.
Diffstat (limited to 'ares/ares_gethostbyname.c')
-rw-r--r--ares/ares_gethostbyname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c
index bdc879196..b96ac6bf7 100644
--- a/ares/ares_gethostbyname.c
+++ b/ares/ares_gethostbyname.c
@@ -160,13 +160,13 @@ static void host_callback(void *arg, int status, int timeouts,
{
if (hquery->family == AF_INET)
{
- status = ares_parse_a_reply(abuf, alen, &host);
+ status = ares_parse_a_reply(abuf, alen, &host, NULL, NULL);
if (host && channel->nsort)
sort_addresses(host, channel->sortlist, channel->nsort);
}
else if (hquery->family == AF_INET6)
{
- status = ares_parse_aaaa_reply(abuf, alen, &host);
+ status = ares_parse_aaaa_reply(abuf, alen, &host, NULL, NULL);
if (host && channel->nsort)
sort6_addresses(host, channel->sortlist, channel->nsort);
}