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