summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
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));