From ccf577da14194f5f3377226bcdb7e69b62a94851 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 8 Jan 2013 15:54:47 +0100 Subject: dsdb-acl: add helper variable 'ldb' in acl_sDRightsEffective Signed-off-by: Stefan Metzmacher Reviewed-by: Matthieu Patou --- source4/dsdb/samdb/ldb_modules/acl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index 2b3abce6b5..24b6507803 100644 --- a/source4/dsdb/samdb/ldb_modules/acl.c +++ b/source4/dsdb/samdb/ldb_modules/acl.c @@ -458,6 +458,7 @@ static int acl_sDRightsEffective(struct ldb_module *module, struct ldb_message *msg, struct acl_context *ac) { + struct ldb_context *ldb = ldb_module_get_ctx(module); struct ldb_message_element *rightsEffective; int ret; struct security_descriptor *sd; @@ -481,7 +482,7 @@ static int acl_sDRightsEffective(struct ldb_module *module, } else { /* Get the security descriptor from the message */ - ret = dsdb_get_sd_from_ldb_message(ldb_module_get_ctx(module), msg, sd_msg, &sd); + ret = dsdb_get_sd_from_ldb_message(ldb, msg, sd_msg, &sd); if (ret != LDB_SUCCESS) { return ret; } -- cgit