|
|
905b4d |
From 8eaafce7331a787bb2ae242eebe92ce8da342ca2 Mon Sep 17 00:00:00 2001
|
|
|
905b4d |
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
905b4d |
Date: Tue, 14 Oct 2014 14:15:25 +0200
|
|
|
905b4d |
Subject: [PATCH 17/22] IPA: Handle NULL members in process_members()
|
|
|
905b4d |
MIME-Version: 1.0
|
|
|
905b4d |
Content-Type: text/plain; charset=UTF-8
|
|
|
905b4d |
Content-Transfer-Encoding: 8bit
|
|
|
905b4d |
|
|
|
905b4d |
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
|
905b4d |
---
|
|
|
905b4d |
src/providers/ipa/ipa_s2n_exop.c | 6 ++++++
|
|
|
905b4d |
1 file changed, 6 insertions(+)
|
|
|
905b4d |
|
|
|
905b4d |
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
|
|
|
905b4d |
index bd5c00b6a48018f8f904aaa03e8162425651b37a..2c31120b196353df52c87ef5b924a80bda134a17 100644
|
|
|
905b4d |
--- a/src/providers/ipa/ipa_s2n_exop.c
|
|
|
905b4d |
+++ b/src/providers/ipa/ipa_s2n_exop.c
|
|
|
905b4d |
@@ -1196,6 +1196,11 @@ static errno_t process_members(struct sss_domain_info *domain,
|
|
|
905b4d |
struct sss_domain_info *obj_domain;
|
|
|
905b4d |
struct sss_domain_info *parent_domain;
|
|
|
905b4d |
|
|
|
905b4d |
+ if (members == NULL) {
|
|
|
905b4d |
+ DEBUG(SSSDBG_TRACE_INTERNAL, "No members\n");
|
|
|
905b4d |
+ return EOK;
|
|
|
905b4d |
+ }
|
|
|
905b4d |
+
|
|
|
905b4d |
tmp_ctx = talloc_new(NULL);
|
|
|
905b4d |
if (tmp_ctx == NULL) {
|
|
|
905b4d |
DEBUG(SSSDBG_OP_FAILURE, "talloc_new failed.\n");
|
|
|
905b4d |
@@ -1731,6 +1736,7 @@ static errno_t ipa_s2n_save_objects(struct sss_domain_info *dom,
|
|
|
905b4d |
goto done;
|
|
|
905b4d |
}
|
|
|
905b4d |
}
|
|
|
905b4d |
+ DEBUG(SSSDBG_TRACE_FUNC, "Processing group %s\n", name);
|
|
|
905b4d |
|
|
|
905b4d |
ret = sysdb_attrs_add_lc_name_alias(attrs->sysdb_attrs, name);
|
|
|
905b4d |
if (ret != EOK) {
|
|
|
905b4d |
--
|
|
|
905b4d |
1.9.3
|
|
|
905b4d |
|