]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:torture: Make sure struct smb2_handle is initialized
authorAndreas Schneider <asn@samba.org>
Thu, 20 Jun 2024 07:24:12 +0000 (09:24 +0200)
committerMartin Schwenke <martins@samba.org>
Sun, 30 Jun 2024 23:20:33 +0000 (23:20 +0000)
commit9ec0f8bd60267e3c616906c7679ae95907b77435
treeb90097e00da18fb7c4055d36354e8641f4c01bd4
parent147861936320d98877d088a9bd36cb2243c98abe
s4:torture: Make sure struct smb2_handle is initialized

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/source4/torture/smb2/lease.c:1223: var_decl: Declaring variable ""h2"" without initializer.
samba-4.20.0rc2/source4/torture/smb2/lease.c:1328: uninit_use_in_call: Using uninitialized value ""h2"" when calling ""smb2_util_close"".
 1326|    done:
 1327|    smb2_util_close(tree, h);
 1328|->  smb2_util_close(tree, h2);
 1329|
 1330|    smb2_util_unlink(tree, fname);"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
source4/torture/smb2/lease.c