summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-01-08 15:54:47 +0100
committerMatthieu Patou <mat@matws.net>2013-01-17 00:23:06 -0800
commitccf577da14194f5f3377226bcdb7e69b62a94851 (patch)
tree409ebefb9caa4bfb1ca3affd090007d7857f1a6b
parent629ce2a1ba392f2e8b632752c583843777471378 (diff)
downloadsamba-ccf577da14194f5f3377226bcdb7e69b62a94851.tar.gz
samba-ccf577da14194f5f3377226bcdb7e69b62a94851.tar.bz2
samba-ccf577da14194f5f3377226bcdb7e69b62a94851.zip
dsdb-acl: add helper variable 'ldb' in acl_sDRightsEffective
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Matthieu Patou <mat@matws.net>
-rw-r--r--source4/dsdb/samdb/ldb_modules/acl.c3
1 files changed, 2 insertions, 1 deletions
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;
}