diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-18 13:07:48 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-18 21:03:40 +1100 |
commit | cb841c363a3f78689b0bea12d359a4f0855164dd (patch) | |
tree | 2aedb7f3a3c8cd6bd7a9c78ecddec648a13767b6 /source4/lib/ldb/tools | |
parent | 5d7805b07f1417e79325c5fd51c0c621f609b6df (diff) | |
download | samba-cb841c363a3f78689b0bea12d359a4f0855164dd.tar.gz samba-cb841c363a3f78689b0bea12d359a4f0855164dd.tar.bz2 samba-cb841c363a3f78689b0bea12d359a4f0855164dd.zip |
s4-ldb: fixed a valgrind error in ldbtest
we were using msg->dn after the ldb it contained had been freed
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r-- | source4/lib/ldb/tools/ldbtest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c index 6af0ee9336..adc6ec8115 100644 --- a/source4/lib/ldb/tools/ldbtest.c +++ b/source4/lib/ldb/tools/ldbtest.c @@ -354,6 +354,8 @@ static void start_test_index(struct ldb_context **ldb) } basedn = ldb_dn_new(*ldb, *ldb, options->basedn); + msg->dn = basedn; + ldb_dn_add_child_fmt(msg->dn, "cn=test"); ret = ldb_search(*ldb, *ldb, &res, basedn, LDB_SCOPE_SUBTREE, NULL, "uid=test"); if (ret != LDB_SUCCESS) { |