summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-06-23 18:10:25 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-06-27 18:01:36 +0200
commit2efc26d6e54b68a079e8f11fa24d04867d432476 (patch)
treeb2c71ac97c41a36f2b3aaa7a7b399a44c05fb65f /Makefile.am
parent759fd29a597533a3f5489246c0d2b658d8bee417 (diff)
downloadsssd-2efc26d6e54b68a079e8f11fa24d04867d432476.tar.gz
sssd-2efc26d6e54b68a079e8f11fa24d04867d432476.tar.xz
sssd-2efc26d6e54b68a079e8f11fa24d04867d432476.zip
LDAP: Fix retrieving a group with no members
sysdb_attrs_get_el() cannot return ENOENT. Even if the requested member doesn't exist, an empty element is created instead. This patch changes the code to use sysdb_attrs_get_el_ext() which returns ENOENT. The code only ever worked because we forgot to check the return value of sdap_nested_group_split_members(). When the empty attribute reached sdap_nested_group_split_members(), the function returned ENOMEM and count == 0. The caller used to only check the value of count, not the retval. Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions