Author: metze
Date: 2007-02-13 12:32:48 +0000 (Tue, 13 Feb 2007)
New Revision: 21311

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21311

Log:
fix very ugly "using free'ed memory" bug

This was there since 2005...

metze
Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c       2007-02-13 
11:04:10 UTC (rev 21310)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c       2007-02-13 
12:32:48 UTC (rev 21311)
@@ -337,7 +337,7 @@
                        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;

Reply via email to