summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-12-12 17:10:25 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-11 11:03:34 +0100
commitbf54fbed126ec3d459af40ea370ffadacd31c76d (patch)
treefb600d300e7939e94b0eedc100a95c330de7d782 /src/providers
parent4d7fe714fe74ad242497b2bdbeb7b4e0bf40141f (diff)
downloadsssd-bf54fbed126ec3d459af40ea370ffadacd31c76d.tar.gz
sssd-bf54fbed126ec3d459af40ea370ffadacd31c76d.tar.xz
sssd-bf54fbed126ec3d459af40ea370ffadacd31c76d.zip
RESOLV: Add an internal function to read TTL from a DNS packet
Related: https://fedorahosted.org/sssd/ticket/1884 Adds an internal resolver function that reads the TTL for SRV records as specified by RFC-2181. Several internal c-ares definitions are used until c-ares contains a function that exposes all this information via a parsing function. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/fail_over_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/fail_over_srv.c b/src/providers/fail_over_srv.c
index 1b99f3150..5c06d2876 100644
--- a/src/providers/fail_over_srv.c
+++ b/src/providers/fail_over_srv.c
@@ -83,7 +83,7 @@ static void fo_discover_srv_done(struct tevent_req *subreq)
state = tevent_req_data(req, struct fo_discover_srv_state);
ret = resolv_discover_srv_recv(state, subreq,
- &reply_list, &state->dns_domain);
+ &reply_list, NULL, &state->dns_domain);
talloc_zfree(subreq);
if (ret == ENOENT) {
ret = ERR_SRV_NOT_FOUND;