mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
s4:torture: Initialize struct cldap_netlogon
"Error: UNINIT (CWE-457): samba-4.20.0rc2/source4/torture/ldap/cldapbench.c:40: var_decl: Declaring variable ""io"" without initializer. samba-4.20.0rc2/source4/torture/ldap/cldapbench.c:45: uninit_use_in_call: Using uninitialized value ""io.in.map_response"" when calling ""cldap_netlogon_recv"". 43| TALLOC_CTX *tmp_ctx = talloc_new(NULL); 44| io.in.version = 6; 45|-> status = cldap_netlogon_recv(req, tmp_ctx, &io); 46| talloc_free(req); 47| if (NT_STATUS_IS_OK(status)) {" Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Jul 18 13:48:03 UTC 2024 on atb-devel-224
This commit is contained in:
parent
bd298f2612
commit
7bb59168e9
@ -37,7 +37,7 @@ struct bench_state {
|
||||
|
||||
static void request_netlogon_handler(struct tevent_req *req)
|
||||
{
|
||||
struct cldap_netlogon io;
|
||||
struct cldap_netlogon io = {};
|
||||
struct bench_state *state = tevent_req_callback_data(req, struct bench_state);
|
||||
NTSTATUS status;
|
||||
TALLOC_CTX *tmp_ctx = talloc_new(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user