From e72c1aaea0a73ed1199554722a26918b57f90d49 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Tue, 17 Apr 2012 08:59:09 -0400 Subject: Fixed memory context in sdap_fill_memberships() --- src/providers/ldap/sdap_async_groups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers/ldap') 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; -- cgit