diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-03-29 11:18:00 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-03-29 11:18:00 +1100 |
commit | e0c90d613121432700ea44011fda51e623de996c (patch) | |
tree | a17f17314697877dc06d6c3149711a29f772e6be /source4/dsdb | |
parent | 77cbab18b51d43aca2b7ade989b5ce6005b69bb6 (diff) | |
download | samba-e0c90d613121432700ea44011fda51e623de996c.tar.gz samba-e0c90d613121432700ea44011fda51e623de996c.tar.bz2 samba-e0c90d613121432700ea44011fda51e623de996c.zip |
Fix some valgrind issues.
These small changes seem to fix some of the early issues in 'make
valgrindtest'
Previously, the subtree_delete code didn't pass on the timeout,
leaving it uninitialised.
The ldap_server/ldap_backend.c change tidies up the talloc hierarchy a
bit.
Andrew Bartlett
(This used to be commit 95314f29a9cf83db71d37e68728bfb5009fce60d)
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/subtree_delete.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/subtree_delete.c b/source4/dsdb/samdb/ldb_modules/subtree_delete.c index 56ae7b239a..9c332d2969 100644 --- a/source4/dsdb/samdb/ldb_modules/subtree_delete.c +++ b/source4/dsdb/samdb/ldb_modules/subtree_delete.c @@ -160,6 +160,12 @@ static int subtree_delete(struct ldb_module *module, struct ldb_request *req) return ret; } + ret = ldb_set_timeout_from_prev_req(module->ldb, req, new_req); + + if (ret != LDB_SUCCESS) { + return ret; + } + ac->search_req = new_req; if (req == NULL) { ldb_oom(ac->module->ldb); |