]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:rpc_server: Initialize array
authorAndreas Schneider <asn@samba.org>
Tue, 2 Jul 2024 09:41:41 +0000 (11:41 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 8 Jul 2024 08:37:46 +0000 (08:37 +0000)
commit26c56ae51ec1315846d72f5dfcf65cf3ed44456c
tree3df75602d1a9c6aec93153c065c9339e0a80d9ed
parent742e5b48ae18c84f0a008cfdfa40c1901aef8b05
s3:rpc_server: Initialize array

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/source3/rpc_server/svcctl/srv_svcctl_nt.c:163: var_decl: Declaring variable ""ace"" without initializer.
samba-4.20.0rc2/source3/rpc_server/svcctl/srv_svcctl_nt.c:182: uninit_use_in_call: Using uninitialized value ""*ace"". Field ""ace->object"" is uninitialized when calling ""make_sec_acl"".
  180|    /* create the security descriptor */
  181|
  182|->  if ( !(theacl = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) )
  183|    return NULL;
  184|"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Jul  8 08:37:46 UTC 2024 on atb-devel-224
source3/rpc_server/svcctl/srv_svcctl_nt.c