diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-02-13 12:42:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:55 -0500 |
commit | 63f43ad5e46b73675a3e3aea9abae2d647c05715 (patch) | |
tree | fbb711dec970e28d61fc9b20f40d6fb5598a2dcd /source3/lib | |
parent | 6dd654c3819db10dea6069ba5647b0563a3b7599 (diff) | |
download | samba-63f43ad5e46b73675a3e3aea9abae2d647c05715.tar.gz samba-63f43ad5e46b73675a3e3aea9abae2d647c05715.tar.bz2 samba-63f43ad5e46b73675a3e3aea9abae2d647c05715.zip |
r21312: merge from SAMBA_4_0:
fix memory hierachy, and access to already freed memory
metze
(This used to be commit 05a23dd75655a80667627e00e0a441b54ec92b22)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/ldb/ldb_tdb/ldb_index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/ldb_tdb/ldb_index.c b/source3/lib/ldb/ldb_tdb/ldb_index.c index 2c88d7e19d..672bc1f625 100644 --- a/source3/lib/ldb/ldb_tdb/ldb_index.c +++ b/source3/lib/ldb/ldb_tdb/ldb_index.c @@ -337,7 +337,7 @@ static int ltdb_index_dn_leaf(struct ldb_module *module, ldb_oom(module->ldb); return -1; } - list->dn[0] = talloc_strdup(list, (char *)tree->u.equality.value.data); + list->dn[0] = talloc_strdup(list->dn, (char *)tree->u.equality.value.data); if (list->dn[0] == NULL) { ldb_oom(module->ldb); return -1; |