]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:torture: Initialize struct netr_LogonSamLogonEx
authorAndreas Schneider <asn@samba.org>
Wed, 17 Jul 2024 08:55:28 +0000 (10:55 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 18 Jul 2024 12:47:30 +0000 (12:47 +0000)
commit125c5a93bbb60b68d054db59aef37ebb77bdb4da
tree340b58eb893807d8efd74456d0cf497c53ed22e0
parent5fe203099665cce636c6fa70a692d044bbfbe322
s4:torture: Initialize struct netr_LogonSamLogonEx

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/source4/torture/rpc/schannel.c:49: var_decl: Declaring variable ""r"" without initializer.
samba-4.20.0rc2/source4/torture/rpc/schannel.c:152: uninit_use_in_call: Using uninitialized value ""r.in.validation_level"" when calling ""torture_comment"".
  150|    ""LogonSamLogonEx failed"");
  151|    } else {
  152|->  torture_comment(tctx,
  153|    ""Skip auth_level[%u] Testing LogonSamLogonEx with name %s using %s and validation_level: %d\n"",
  154|    auth_level, ninfo.identity_info.account_name.string, crypto_alg,"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/torture/rpc/schannel.c