diff options
author | Steinar H. Gunderson <sesse@google.com> | 2007-11-15 08:36:25 +0000 |
---|---|---|
committer | Steinar H. Gunderson <sesse@google.com> | 2007-11-15 08:36:25 +0000 |
commit | b4bdb6d4d7915bf5e1a89b6ae19f7ffbcd2e8144 (patch) | |
tree | d1d94cb51374092ffc7f74e21eb342da707d7735 /ares_gethostbyname.c | |
parent | 7cd35ce69858bb06a446ef7620ea52807d67d306 (diff) | |
download | c-ares-b4bdb6d4d7915bf5e1a89b6ae19f7ffbcd2e8144.tar.gz c-ares-b4bdb6d4d7915bf5e1a89b6ae19f7ffbcd2e8144.tar.bz2 c-ares-b4bdb6d4d7915bf5e1a89b6ae19f7ffbcd2e8144.zip |
Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. Patch from the Google tree.
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r-- | ares_gethostbyname.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |