From 9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Apr 2010 12:47:28 +0200 Subject: s3: Use talloc_stackframe() in user_in_group_sid --- source3/auth/auth_util.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source3') 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, -- cgit