diff options
author | Petr Čech <pcech@redhat.com> | 2017-03-15 14:23:31 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2017-08-03 16:25:55 +0200 |
commit | d84e841ede0a372a879531b2b7df6905e363b4ee (patch) | |
tree | 4f7ee7820c1c780196a361a3c54b1595b8b11356 /src/responder | |
parent | d1b2a3394e496f749151ccd5aca29507ca69214b (diff) | |
download | sssd-d84e841ede0a372a879531b2b7df6905e363b4ee.tar.gz sssd-d84e841ede0a372a879531b2b7df6905e363b4ee.tar.xz sssd-d84e841ede0a372a879531b2b7df6905e363b4ee.zip |
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
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/ifp/ifp_groups.c | 7 |
1 files changed, 1 insertions, 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; } |