summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 22:18:10 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 22:18:10 +0100
commit13b1bf5d47cb764365f6a14e35a4aa55b9a7e355 (patch)
tree68910a3a1691e7f0b0cde96af5aa9f275bbad0e5 /source4/auth
parent3d94b284411d912449b6a316439cc3d013bf1570 (diff)
downloadsamba-13b1bf5d47cb764365f6a14e35a4aa55b9a7e355.tar.gz
samba-13b1bf5d47cb764365f6a14e35a4aa55b9a7e355.tar.bz2
samba-13b1bf5d47cb764365f6a14e35a4aa55b9a7e355.zip
s4:auth/sam.c - change base context for the "tmp_ctx" context in "authsam_expand_nested_groups"
Better use the "res_sids_ctx" as base context for the "tmp_ctx" and not the long-living "sam_ctx"/"ldb" context to prevent memory leaks.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/sam.c b/source4/auth/sam.c
index 20efc3684a..fc3e810ef7 100644
--- a/source4/auth/sam.c
+++ b/source4/auth/sam.c
@@ -336,7 +336,7 @@ _PUBLIC_ NTSTATUS authsam_expand_nested_groups(struct ldb_context *sam_ctx,
++(*num_res_sids);
}
- tmp_ctx = talloc_new(sam_ctx);
+ tmp_ctx = talloc_new(res_sids_ctx);
ret = gendb_search(sam_ctx, tmp_ctx, NULL, &res, attrs,
"objectSid=%s", ldap_encode_ndr_dom_sid(tmp_ctx, sid));