b6b438
From 0fb7a341e75794027de988894da7547a5258d705 Mon Sep 17 00:00:00 2001
b6b438
From: Andreas Schneider <asn@samba.org>
b6b438
Date: Tue, 16 Jul 2019 15:20:23 +0200
b6b438
Subject: [PATCH 059/187] s3:lib: Use the passed mem_ctx instead of
b6b438
 talloc_tos()
b6b438
b6b438
Signed-off-by: Andreas Schneider <asn@samba.org>
b6b438
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
b6b438
(cherry picked from commit fa09e811ca6fb08a66940380b310ce9794397071)
b6b438
---
b6b438
 source3/lib/netapi/user.c | 8 ++++----
b6b438
 1 file changed, 4 insertions(+), 4 deletions(-)
b6b438
b6b438
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
b6b438
index 827b7902040..fc236e55d1f 100644
b6b438
--- a/source3/lib/netapi/user.c
b6b438
+++ b/source3/lib/netapi/user.c
b6b438
@@ -290,7 +290,7 @@ static NTSTATUS construct_USER_INFO_X(uint32_t level,
b6b438
 /****************************************************************
b6b438
 ****************************************************************/
b6b438
 
b6b438
-static NTSTATUS set_user_info_USER_INFO_X(TALLOC_CTX *ctx,
b6b438
+static NTSTATUS set_user_info_USER_INFO_X(TALLOC_CTX *mem_ctx,
b6b438
 					  struct rpc_pipe_client *pipe_cli,
b6b438
 					  DATA_BLOB *session_key,
b6b438
 					  struct policy_handle *user_handle,
b6b438
@@ -320,7 +320,7 @@ static NTSTATUS set_user_info_USER_INFO_X(TALLOC_CTX *ctx,
b6b438
 			return status;
b6b438
 		}
b6b438
 
b6b438
-		status = dcerpc_samr_SetUserInfo2(b, talloc_tos(),
b6b438
+		status = dcerpc_samr_SetUserInfo2(b, mem_ctx,
b6b438
 						  user_handle,
b6b438
 						  25,
b6b438
 						  &user_info,
b6b438
@@ -336,7 +336,7 @@ static NTSTATUS set_user_info_USER_INFO_X(TALLOC_CTX *ctx,
b6b438
 				return status;
b6b438
 			}
b6b438
 
b6b438
-			status = dcerpc_samr_SetUserInfo2(b, talloc_tos(),
b6b438
+			status = dcerpc_samr_SetUserInfo2(b, mem_ctx,
b6b438
 							  user_handle,
b6b438
 							  23,
b6b438
 							  &user_info,
b6b438
@@ -353,7 +353,7 @@ static NTSTATUS set_user_info_USER_INFO_X(TALLOC_CTX *ctx,
b6b438
 
b6b438
 		user_info.info21 = info21;
b6b438
 
b6b438
-		status = dcerpc_samr_SetUserInfo(b, talloc_tos(),
b6b438
+		status = dcerpc_samr_SetUserInfo(b, mem_ctx,
b6b438
 						 user_handle,
b6b438
 						 21,
b6b438
 						 &user_info,
b6b438
-- 
b6b438
2.23.0
b6b438