mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lsa4: Fix Coverity ID 1499410
It complains about uninitialized access, and I'm not sure it isn't right. Just initialize the structure. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a5c2134cc2
commit
0bc329a343
@ -344,10 +344,11 @@ NTSTATUS dcesrv_lsa_OpenPolicy(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
|
||||
DCESRV_FAULT(DCERPC_FAULT_ACCESS_DENIED);
|
||||
}
|
||||
|
||||
r2.in.system_name = NULL;
|
||||
r2.in.attr = r->in.attr;
|
||||
r2.in.access_mask = r->in.access_mask;
|
||||
r2.out.handle = r->out.handle;
|
||||
r2 = (struct lsa_OpenPolicy2) {
|
||||
.in.attr = r->in.attr,
|
||||
.in.access_mask = r->in.access_mask,
|
||||
.out.handle = r->out.handle,
|
||||
};
|
||||
|
||||
return dcesrv_lsa_OpenPolicy2(dce_call, mem_ctx, &r2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user