1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4-dsdb Remove mem_ctx argument from dsdb_module_find_dsheuristics().

A function that does not return memory should not take a memory context.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2010-11-25 16:12:39 +11:00
parent fad57d8ad0
commit 885ecd7b6b
2 changed files with 3 additions and 4 deletions

View File

@ -226,7 +226,7 @@ static int aclread_search(struct ldb_module *module, struct ldb_request *req)
session_info = (struct auth_session_info *)ldb_get_opaque(ldb, "sessionInfo");
if (session_info && security_token_is_anonymous(session_info->security_token)) {
block_anonymous = dsdb_block_anonymous_ops(module, req);
block_anonymous = dsdb_block_anonymous_ops(module);
if (block_anonymous) {
return ldb_error(ldb, LDB_ERR_OPERATIONS_ERROR,
"This request is not allowed to an anonymous connection.");

View File

@ -1080,10 +1080,9 @@ const struct ldb_val *dsdb_module_find_dsheuristics(struct ldb_module *module,
return NULL;
}
bool dsdb_block_anonymous_ops(struct ldb_module *module,
TALLOC_CTX *mem_ctx)
bool dsdb_block_anonymous_ops(struct ldb_module *module)
{
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
TALLOC_CTX *tmp_ctx = talloc_new(module);
bool result;
const struct ldb_val *hr_val = dsdb_module_find_dsheuristics(module,
tmp_ctx);