sssd_be git master crashes when an interface without addresses is present. Cheers,
Stef
>From e92d514204685735912d93f2306eb7c513151614 Mon Sep 17 00:00:00 2001 From: Stef Walter <st...@gnome.org> Date: Wed, 4 Jul 2012 13:29:25 +0200 Subject: [PATCH 1/2] Fix crash when interface doesn't have an address * This is similar to the code in ipa_dyndns_update_send() --- src/providers/ldap/sdap_async_sudo_hostinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/providers/ldap/sdap_async_sudo_hostinfo.c b/src/providers/ldap/sdap_async_sudo_hostinfo.c index d219d88..99a9bc7 100644 --- a/src/providers/ldap/sdap_async_sudo_hostinfo.c +++ b/src/providers/ldap/sdap_async_sudo_hostinfo.c @@ -159,6 +159,9 @@ static int sdap_sudo_get_ip_addresses(TALLOC_CTX *mem_ctx, char ***_ip_addr_list } for (iface = ifaces; iface != NULL; iface = iface->ifa_next) { + /* Some interfaces don't have an ifa_addr */ + if (!iface->ifa_addr) continue; + netmask = 0; switch (iface->ifa_addr->sa_family) { case AF_INET: -- 1.7.10.4
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel