From db86e17493ceff0567a1b879f8e5ec5b1332a4d6 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 12 Aug 2011 17:08:44 +0200 Subject: IPA dyndns: do not segfault if the server cannot be resolved https://fedorahosted.org/sssd/ticket/963 --- src/providers/ipa/ipa_dyndns.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/providers/ipa') 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; -- cgit