1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

rpc_server: Use direct struct initialization instead of ZERO_STRUCT

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-02-24 15:49:49 +01:00 committed by Jeremy Allison
parent a53cc3adc6
commit 3e58a4d9d7

View File

@ -1217,7 +1217,7 @@ static NTSTATUS netr_set_machine_account_password(TALLOC_CTX *mem_ctx,
NTSTATUS result = NT_STATUS_OK;
struct dcerpc_binding_handle *h = NULL;
struct tsocket_address *local;
struct policy_handle user_handle;
struct policy_handle user_handle = { .handle_type = 0 };
uint32_t acct_ctrl;
union samr_UserInfo *info;
struct samr_UserInfo18 info18;
@ -1228,8 +1228,6 @@ static NTSTATUS netr_set_machine_account_password(TALLOC_CTX *mem_ctx,
enum samr_UserInfoLevel infolevel;
TALLOC_CTX *frame = talloc_stackframe();
ZERO_STRUCT(user_handle);
status = session_extract_session_key(session_info,
&session_key,
KEY_USE_16BYTES);