diff options
author | Sumit Bose <sbose@redhat.com> | 2013-09-02 17:35:23 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-05 11:18:53 +0200 |
commit | 41bd89df256b15d8c451fc229e33cc92828ac179 (patch) | |
tree | ae3cb056debb1894752c3a9ab26c6cf2f494d214 /src/providers/dp_dyndns.c | |
parent | 56a6ae9e7a8d3bb9a973b934e42534b549293ed3 (diff) | |
download | sssd-41bd89df256b15d8c451fc229e33cc92828ac179.tar.gz sssd-41bd89df256b15d8c451fc229e33cc92828ac179.tar.xz sssd-41bd89df256b15d8c451fc229e33cc92828ac179.zip |
dyndns: do not modify global family_order
Resolves:
https://fedorahosted.org/sssd/ticket/2063
Diffstat (limited to 'src/providers/dp_dyndns.c')
-rw-r--r-- | src/providers/dp_dyndns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/dp_dyndns.c b/src/providers/dp_dyndns.c index 488c2a614..7a342d1ed 100644 --- a/src/providers/dp_dyndns.c +++ b/src/providers/dp_dyndns.c @@ -634,6 +634,7 @@ nsupdate_get_addrs_done(struct tevent_req *subreq) struct sss_iface_addr *addr; int i; int resolv_status; + enum restrict_family retry_family_order; ret = resolv_gethostbyname_recv(subreq, state, &resolv_status, NULL, &rhostent); @@ -698,15 +699,14 @@ nsupdate_get_addrs_done(struct tevent_req *subreq) (state->be_res->family_order == IPV6_FIRST && rhostent->family == AF_INET6))) { - state->be_res->family_order = \ - (state->be_res->family_order == IPV4_FIRST) ? \ + retry_family_order = (state->be_res->family_order == IPV4_FIRST) ? \ IPV6_ONLY : \ IPV4_ONLY; subreq = resolv_gethostbyname_send(state, state->ev, state->be_res->resolv, state->hostname, - state->be_res->family_order, + retry_family_order, state->db); if (!subreq) { ret = ENOMEM; |