summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index ce8aaa33ea..288ce50139 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -199,7 +199,7 @@ bool change_to_user(connection_struct *conn, uint16 vuid)
if((group_c = *lp_force_group(snum))) {
- token = dup_nt_token(NULL, token);
+ token = dup_nt_token(talloc_tos(), token);
if (token == NULL) {
DEBUG(0, ("dup_nt_token failed\n"));
return False;