summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 14:28:04 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 18:16:21 +0100
commite34ee26169a893e4219e49803885718261faf82b (patch)
treed9824d6eef4b7eb7ee4b2b4c2d6c2a0615ea73f6 /source4/dsdb
parentbc2ff7abc9c2b8c7c295e7164a02ef6820ebdae0 (diff)
downloadsamba-e34ee26169a893e4219e49803885718261faf82b.tar.gz
samba-e34ee26169a893e4219e49803885718261faf82b.tar.bz2
samba-e34ee26169a893e4219e49803885718261faf82b.zip
s4:operational LDB module - use right memory context int "construct_primary_group_token"
Use the "msg" as temporary context and not "ldb" which lives much longer.
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/operational.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c
index b017f2383f..413ea6b528 100644
--- a/source4/dsdb/samdb/ldb_modules/operational.c
+++ b/source4/dsdb/samdb/ldb_modules/operational.c
@@ -106,12 +106,12 @@ static int construct_primary_group_token(struct ldb_module *module,
ldb = ldb_module_get_ctx(module);
if (ldb_match_msg_objectclass(msg, "group") == 1) {
primary_group_token
- = samdb_result_rid_from_sid(ldb, msg, "objectSid", 0);
+ = samdb_result_rid_from_sid(msg, msg, "objectSid", 0);
if (primary_group_token == 0) {
return LDB_SUCCESS;
}
- return samdb_msg_add_int(ldb, ldb, msg, "primaryGroupToken",
+ return samdb_msg_add_int(ldb, msg, msg, "primaryGroupToken",
primary_group_token);
} else {
return LDB_SUCCESS;