]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:torture: Initialize pointer with NULL
authorAndreas Schneider <asn@samba.org>
Tue, 2 Jul 2024 09:37:25 +0000 (11:37 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 8 Jul 2024 07:36:33 +0000 (07:36 +0000)
commit742e5b48ae18c84f0a008cfdfa40c1901aef8b05
tree72ddc6fa0ac1080a3bcd805e0d58d7f5c74da108
parentb7c45f9c4fb080cbd8742551dce94171bf871fb3
s4:torture: Initialize pointer with NULL

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/source4/torture/rpc/samsync.c:342: var_decl: Declaring variable ""dom_sid"" without initializer.
samba-4.20.0rc2/source4/torture/rpc/samsync.c:385: uninit_use_in_call: Using uninitialized value ""dom_sid"" when calling ""dom_sid_dup"".
  383|    }
  384|    if (samsync_state->domain_handle[database_id]) {
  385|->  samsync_state->sid[database_id] = dom_sid_dup(samsync_state, dom_sid);
  386|    }
  387|"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/torture/rpc/samsync.c