[SSSD] [PATCH] IPA dyndns: do not segfault if the server cannot be resolved
Jakub Hrozek
jhrozek at redhat.com
Fri Aug 12 16:30:24 UTC 2011
https://fedorahosted.org/sssd/ticket/963
-------------- next part --------------
>From 86aaf7c2dbd9aa85b78e1bb9c0050ec529bf504b Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Fri, 12 Aug 2011 17:08:44 +0200
Subject: [PATCH] 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 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c
index b271e4f..c532c3d 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;
--
1.7.6
More information about the sssd-devel
mailing list