summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-11-15 10:02:54 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-19 14:24:03 +0100
commita2fba7ed4c138d8fef6a5f0e17a249225b85359c (patch)
treeef5fa05c4527922e27f0b4c00a0ddfae4f480c28 /src/providers/ldap
parenta00c1d4e9e34526c25a43bf7c900a1742d4ac17d (diff)
downloadsssd-a2fba7ed4c138d8fef6a5f0e17a249225b85359c.tar.gz
sssd-a2fba7ed4c138d8fef6a5f0e17a249225b85359c.tar.xz
sssd-a2fba7ed4c138d8fef6a5f0e17a249225b85359c.zip
LDAP: use the correct memory context
The element being reallocated is part of the "group_attrs" array, not attrs.
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 7cdf2fa0b..4872b8594 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -438,7 +438,7 @@ static int sdap_save_group(TALLOC_CTX *memctx,
/* Now process RFC2307bis ghost hash table */
if (ghosts && cnt > 0) {
- el->values = talloc_realloc(attrs, el->values, struct ldb_val,
+ el->values = talloc_realloc(group_attrs, el->values, struct ldb_val,
cnt);
if (el->values == NULL) {
ret = ENOMEM;