summaryrefslogtreecommitdiff
path: root/source3/auth/auth_util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-11 12:47:28 +0200
committerVolker Lendecke <vl@samba.org>2010-04-11 13:53:21 +0200
commit9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5 (patch)
treeb4c6f82a2e7cb17cae30073134d6520743cae6c9 /source3/auth/auth_util.c
parent9cf448a30efc73392f267547ef48b7ab19790900 (diff)
downloadsamba-9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5.tar.gz
samba-9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5.tar.bz2
samba-9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5.zip
s3: Use talloc_stackframe() in user_in_group_sid
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r--source3/auth/auth_util.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 08dae60485..93f9d19b61 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1079,14 +1079,7 @@ bool user_in_group_sid(const char *username, const DOM_SID *group_sid)
char *found_username;
struct nt_user_token *token;
bool result;
-
- TALLOC_CTX *mem_ctx;
-
- mem_ctx = talloc_new(NULL);
- if (mem_ctx == NULL) {
- DEBUG(0, ("talloc_new failed\n"));
- return False;
- }
+ TALLOC_CTX *mem_ctx = talloc_stackframe();
status = create_token_from_username(mem_ctx, username, False,
&uid, &gid, &found_username,