summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-04-17 08:59:09 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-18 10:23:56 -0400
commite72c1aaea0a73ed1199554722a26918b57f90d49 (patch)
tree53a3a3c27841e6776c87934105dac2560ee0f7ed /src/providers/ldap
parent2c9d3ca604743df82f2f3a8a05829c2dee3d97d7 (diff)
downloadsssd-e72c1aaea0a73ed1199554722a26918b57f90d49.tar.gz
sssd-e72c1aaea0a73ed1199554722a26918b57f90d49.tar.bz2
sssd-e72c1aaea0a73ed1199554722a26918b57f90d49.zip
Fixed memory context in sdap_fill_memberships()
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_groups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index b19e2b67..fe116b96 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -108,7 +108,7 @@ static int sdap_fill_memberships(struct sysdb_attrs *group_attrs,
}
/* Just allocate both big enough to contain all members for now */
- el->values = talloc_realloc(el, el->values, struct ldb_val,
+ el->values = talloc_realloc(group_attrs, el->values, struct ldb_val,
el->num_values + num_values);
if (!el->values) {
ret = ENOMEM;