diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-08-12 17:08:44 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-25 13:30:37 -0400 |
commit | db86e17493ceff0567a1b879f8e5ec5b1332a4d6 (patch) | |
tree | d088895ecd3cc07f886ad85c91a9f520bbd00198 | |
parent | 5bf2314b9f64099cd4e88b8f3498d986d97e1ac6 (diff) | |
download | sssd-db86e17493ceff0567a1b879f8e5ec5b1332a4d6.tar.gz sssd-db86e17493ceff0567a1b879f8e5ec5b1332a4d6.tar.bz2 sssd-db86e17493ceff0567a1b879f8e5ec5b1332a4d6.zip |
IPA dyndns: do not segfault if the server cannot be resolved
https://fedorahosted.org/sssd/ticket/963
-rw-r--r-- | src/providers/ipa/ipa_dyndns.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c index b271e4f2..c532c3d0 100644 --- a/src/providers/ipa/ipa_dyndns.c +++ b/src/providers/ipa/ipa_dyndns.c @@ -646,10 +646,8 @@ ipa_dyndns_update_get_addrs_done(struct tevent_req *subreq) /* If the resolver is set to honor both address families * retry the second one */ - if (((state->family_order == IPV4_FIRST && - rhostent->family == AF_INET) || - (state->family_order == IPV6_FIRST && - rhostent->family == AF_INET6))) { + if (state->family_order == IPV4_FIRST || + state->family_order == IPV6_FIRST) { state->family_order = (state->family_order == IPV4_FIRST) ? \ IPV6_ONLY : IPV4_ONLY; |