summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-08-12 17:08:44 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-08-25 13:30:47 -0400
commitb72487483c4190457f61d2b8765cc960096a40ce (patch)
tree1e008b49bf0f653801e1ccf646061870f99eb4c9
parent3e6b8cea08ac2b1207fffc6c30a7aaaa74553c03 (diff)
downloadsssd-b72487483c4190457f61d2b8765cc960096a40ce.tar.gz
sssd-b72487483c4190457f61d2b8765cc960096a40ce.tar.xz
sssd-b72487483c4190457f61d2b8765cc960096a40ce.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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c
index b271e4f23..c532c3d0b 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;