diff options
author | Volker Lendecke <vl@samba.org> | 2021-02-24 15:49:49 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-03-09 22:36:28 +0000 |
commit | 3e58a4d9d75253fb1d01d2477e10b825da658025 (patch) | |
tree | 00960cbb4e65de372cec3a5b7f36012f55f09f97 /source3/rpc_server | |
parent | a53cc3adc6cc8006535779f559cd8e2736da8b41 (diff) | |
download | samba-3e58a4d9d75253fb1d01d2477e10b825da658025.tar.gz |
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>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/netlogon/srv_netlog_nt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c index 71a8bedaa7e..0f59ebf7230 100644 --- a/source3/rpc_server/netlogon/srv_netlog_nt.c +++ b/source3/rpc_server/netlogon/srv_netlog_nt.c @@ -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); |