1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

rpc_server: Initialize variables in get_md4pw()

My gcc complained at one point about uninitialized vars

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-03-14 10:18:12 +01:00 committed by Jeremy Allison
parent 35ecbb3221
commit 386f62fb57

View File

@ -629,15 +629,15 @@ static NTSTATUS get_md4pw(struct samr_Password *md4pw, const char *mach_acct,
{
NTSTATUS status;
NTSTATUS result = NT_STATUS_OK;
TALLOC_CTX *mem_ctx;
TALLOC_CTX *mem_ctx = NULL;
struct dcerpc_binding_handle *h = NULL;
struct tsocket_address *local;
struct policy_handle user_handle;
uint32_t user_rid;
struct dom_sid *domain_sid;
uint32_t acct_ctrl;
union samr_UserInfo *info;
struct auth_session_info *session_info;
struct tsocket_address *local = NULL;
struct policy_handle user_handle = { .handle_type = 0 };
uint32_t user_rid = UINT32_MAX;
struct dom_sid *domain_sid = NULL;
uint32_t acct_ctrl = 0;
union samr_UserInfo *info = NULL;
struct auth_session_info *session_info = NULL;
int rc;
#if 0