URL: https://github.com/SSSD/sssd/pull/202 Author: celestian Title: #202: T3315 infopipe group users master Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/202/head:pr202 git checkout pr202
From 84e9f0a76b5e4e4e97751a16b34c698422dd7411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C4=8Cech?= <[email protected]> Date: Wed, 15 Mar 2017 14:23:31 +0100 Subject: [PATCH] IFP: Do not fail when a GHOST group is not found Usually is okay that there are no ghost attributes for a group as it basically just means that the group either has no members or all members have been previously fully resolved. Resolves: https://pagure.io/SSSD/sssd/issue/3315 --- src/responder/ifp/ifp_groups.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/responder/ifp/ifp_groups.c b/src/responder/ifp/ifp_groups.c index c568c6200..f03c3e4b3 100644 --- a/src/responder/ifp/ifp_groups.c +++ b/src/responder/ifp/ifp_groups.c @@ -607,12 +607,7 @@ static void resolv_ghosts_group_done(struct tevent_req *subreq) } el = ldb_msg_find_element(group, SYSDB_GHOST); - if (el == NULL) { - ret = ENOMEM; - goto done; - } - - if (el->num_values == 0) { + if (el == NULL || el->num_values == 0) { ret = EOK; goto done; }
_______________________________________________ sssd-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
