]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Make use of talloc_tos() in change_to_user()
authorVolker Lendecke <vl@samba.org>
Thu, 8 May 2008 09:47:43 +0000 (11:47 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 10 May 2008 09:17:00 +0000 (11:17 +0200)
(This used to be commit c4bed3a48b86d44ad641250add2fc189af7e72f5)

source3/smbd/uid.c

index ce8aaa33ea35058d08e49982668f545d57fc0fd8..288ce501394b33cde908f02c92de9d58cab39d17 100644 (file)
@@ -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;