diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-15 10:02:54 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-19 14:21:00 +0100 |
commit | a663086f53dc892453d40483e629686bb1f411d2 (patch) | |
tree | aa42f7255f64cb8e1e8e62ec817c97f0abccd64d | |
parent | b893cb4f3567d2dd571debf6dbf0d50a38f86823 (diff) | |
download | sssd-a663086f53dc892453d40483e629686bb1f411d2.tar.gz sssd-a663086f53dc892453d40483e629686bb1f411d2.tar.bz2 sssd-a663086f53dc892453d40483e629686bb1f411d2.zip |
LDAP: use the correct memory context
The element being reallocated is part of the "group_attrs" array, not
attrs.
-rw-r--r-- | src/providers/ldap/sdap_async_groups.c | 2 |
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 b8457e64..0c334390 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; |