summaryrefslogtreecommitdiffstats
path: root/src/providers
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:36:23 +0100
commit214bae39852625de3324d62edf3460b57e0744ee (patch)
tree5d0c8f8cdd5560af4ad3c29b86be39eab71eb865 /src/providers
parent4f6657502d32ebe8c9bd7f97a4d2a189d63bc410 (diff)
downloadsssd-214bae39852625de3324d62edf3460b57e0744ee.tar.gz
sssd-214bae39852625de3324d62edf3460b57e0744ee.tar.xz
sssd-214bae39852625de3324d62edf3460b57e0744ee.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')
-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 32dd5020a..c3a3fe7b6 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -384,7 +384,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;