diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-02-13 12:32:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:08 -0500 |
commit | f14c66ca3046d6561779d4cb1a53ea7b6d72d535 (patch) | |
tree | 3e55a504806fd75a71c62bb412e1eefa21a6ea8e /source4/lib/ldb | |
parent | 08de05ce5a4da17403fc8feb2a1760ab21a767fa (diff) | |
download | samba-f14c66ca3046d6561779d4cb1a53ea7b6d72d535.tar.gz samba-f14c66ca3046d6561779d4cb1a53ea7b6d72d535.tar.bz2 samba-f14c66ca3046d6561779d4cb1a53ea7b6d72d535.zip |
r21311: fix very ugly "using free'ed memory" bug
This was there since 2005...
metze
(This used to be commit 393e4eeb82df8017eb0afb526f4d723cf8814311)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c index f6dc997f3a..7fe769a010 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_index.c +++ b/source4/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; |