mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
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>
This commit is contained in:
parent
5d7805b07f
commit
cb841c363a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user