summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-25 16:57:06 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-02 08:10:17 -0400
commit067379e78f2295462be246d8ecafb1c693b4a5f7 (patch)
tree22c2aff8ecaa9d94a3e4eef4a8b8b401021c9e6b /src/providers/ldap
parent33aa72ea4d6b04549be0b47e8ec6ff9375621de8 (diff)
downloadsssd-067379e78f2295462be246d8ecafb1c693b4a5f7.tar.gz
sssd-067379e78f2295462be246d8ecafb1c693b4a5f7.tar.bz2
sssd-067379e78f2295462be246d8ecafb1c693b4a5f7.zip
LDAP: check return value of sysdb_attrs_get_el
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_groups.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index c7e4ac27..d6877a37 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -1092,6 +1092,13 @@ next:
*/
ret = sysdb_attrs_get_el(state->group,
state->opts->group_map[SDAP_AT_GROUP_MEMBER].sys_name, &el);
+ if (ret != EOK) {
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("Failed to get the group member attribute [%d]: %s\n",
+ ret, strerror(ret)));
+ tevent_req_error(req, ret);
+ return;
+ }
el->values = talloc_steal(state->group, state->sysdb_dns->values);
el->num_values = state->sysdb_dns->num_values;
DEBUG(9, ("Processed Group - Done\n"));