From b4bdb6d4d7915bf5e1a89b6ae19f7ffbcd2e8144 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 15 Nov 2007 08:36:25 +0000 Subject: Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. Patch from the Google tree. --- ares_gethostbyname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ares_gethostbyname.c') diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c index bdc8791..b96ac6b 100644 --- a/ares_gethostbyname.c +++ b/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); } -- cgit v1.2.3