summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 15:46:36 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 03:29:27 +0200
commit86919606c7bb9f80200799a23fb491a9bb7f2f14 (patch)
tree11b87b53a0a1ef91c570d23537bcf8fad1f8c04a /source3/auth
parent69ef2b37050d44394c4e68c315a5af0afe332656 (diff)
downloadsamba-86919606c7bb9f80200799a23fb491a9bb7f2f14.tar.gz
samba-86919606c7bb9f80200799a23fb491a9bb7f2f14.tar.bz2
samba-86919606c7bb9f80200799a23fb491a9bb7f2f14.zip
s3: Remove talloc_autofree_context() from get_root_nt_token()
The memcache_add_talloc() later on steals it anyway
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/token_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index f88a88aba2..8666f88a2d 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -109,7 +109,7 @@ struct security_token *get_root_nt_token( void )
uid_to_sid(&u_sid, pw->pw_uid);
gid_to_sid(&g_sid, pw->pw_gid);
- token = create_local_nt_token(talloc_autofree_context(), &u_sid, False,
+ token = create_local_nt_token(talloc_tos(), &u_sid, False,
1, &global_sid_Builtin_Administrators);
security_token_set_privilege(token, SEC_PRIV_DISK_OPERATOR);