mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3: Fix Coverity ID 242720 Uninitialized scalar variable
In an error path we are closing domain_pol without opening it
This commit is contained in:
parent
a4b7a1eb26
commit
b2ea585c14
@ -970,7 +970,8 @@ static NTSTATUS cmd_samr_enum_dom_groups(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
int argc, const char **argv)
|
||||
{
|
||||
struct policy_handle connect_pol, domain_pol;
|
||||
struct policy_handle connect_pol;
|
||||
struct policy_handle domain_pol = { 0, };
|
||||
NTSTATUS status, result;
|
||||
uint32 start_idx, num_dom_groups, i;
|
||||
uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user