diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-11 12:47:28 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-11 13:53:21 +0200 |
commit | 9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5 (patch) | |
tree | b4c6f82a2e7cb17cae30073134d6520743cae6c9 /source3 | |
parent | 9cf448a30efc73392f267547ef48b7ab19790900 (diff) | |
download | samba-9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5.tar.gz samba-9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5.tar.bz2 samba-9655f63642e9ad3b8b25fcd2beb8bc49fdb9d4e5.zip |
s3: Use talloc_stackframe() in user_in_group_sid
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_util.c | 9 |
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, |