mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r19332: ldb_parse_tree leaks
This commit is contained in:
parent
de45756ea6
commit
3e0e2787c1
@ -402,7 +402,7 @@ static int local_password_mod_search_self(struct ldb_handle *h) {
|
||||
ac->search_req->operation = LDB_SEARCH;
|
||||
ac->search_req->op.search.base = ac->orig_req->op.mod.message->dn;
|
||||
ac->search_req->op.search.scope = LDB_SCOPE_BASE;
|
||||
ac->search_req->op.search.tree = ldb_parse_tree(ac->module->ldb, NULL);
|
||||
ac->search_req->op.search.tree = ldb_parse_tree(ac->orig_req, NULL);
|
||||
if (ac->search_req->op.search.tree == NULL) {
|
||||
ldb_set_errstring(ac->module->ldb, "Invalid search filter");
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
@ -601,7 +601,7 @@ static int lpdb_remote_search_callback(struct ldb_context *ldb, void *context, s
|
||||
}
|
||||
req->operation = LDB_SEARCH;
|
||||
req->op.search.scope = LDB_SCOPE_BASE;
|
||||
req->op.search.tree = ldb_parse_tree(ac->module->ldb, NULL);
|
||||
req->op.search.tree = ldb_parse_tree(req, NULL);
|
||||
if (req->op.search.tree == NULL) {
|
||||
ldb_set_errstring(ac->module->ldb, "Out of Memory");
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
|
@ -924,7 +924,7 @@ static int password_hash_mod_search_self(struct ldb_handle *h) {
|
||||
ac->search_req->operation = LDB_SEARCH;
|
||||
ac->search_req->op.search.base = ac->orig_req->op.mod.message->dn;
|
||||
ac->search_req->op.search.scope = LDB_SCOPE_BASE;
|
||||
ac->search_req->op.search.tree = ldb_parse_tree(ac->module->ldb, NULL);
|
||||
ac->search_req->op.search.tree = ldb_parse_tree(ac->search_req, NULL);
|
||||
if (ac->search_req->op.search.tree == NULL) {
|
||||
ldb_set_errstring(ac->module->ldb, "Invalid search filter");
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
|
@ -464,7 +464,7 @@ static int objectclass_search_self(struct ldb_handle *h) {
|
||||
ac->search_req->operation = LDB_SEARCH;
|
||||
ac->search_req->op.search.base = ac->orig_req->op.mod.message->dn;
|
||||
ac->search_req->op.search.scope = LDB_SCOPE_BASE;
|
||||
ac->search_req->op.search.tree = ldb_parse_tree(ac->module->ldb, NULL);
|
||||
ac->search_req->op.search.tree = ldb_parse_tree(ac->search_req, NULL);
|
||||
if (ac->search_req->op.search.tree == NULL) {
|
||||
ldb_set_errstring(ac->module->ldb, "objectclass: Internal error producing null search");
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
|
@ -215,7 +215,7 @@ static int do_search(struct ldb_context *ldb,
|
||||
req->operation = LDB_SEARCH;
|
||||
req->op.search.base = basedn;
|
||||
req->op.search.scope = options->scope;
|
||||
req->op.search.tree = ldb_parse_tree(ldb, expression);
|
||||
req->op.search.tree = ldb_parse_tree(req, expression);
|
||||
if (req->op.search.tree == NULL) return -1;
|
||||
req->op.search.attrs = attrs;
|
||||
req->controls = sctx->req_ctrls;
|
||||
|
Loading…
Reference in New Issue
Block a user