From: Volker Lendecke Date: Thu, 8 May 2008 09:47:43 +0000 (+0200) Subject: Make use of talloc_tos() in change_to_user() X-Git-Tag: samba-4.0.0alpha6~801^2~1407 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2b9ac714b0f7aeece4ebe8772b7f8380356818d;p=thirdparty%2Fsamba.git Make use of talloc_tos() in change_to_user() (This used to be commit c4bed3a48b86d44ad641250add2fc189af7e72f5) --- diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index ce8aaa33ea3..288ce501394 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;