mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Fix Coverity ID 242717 Uninitialized scalar variable
In an error path we are closing domain_pol without opening it
This commit is contained in:
parent
2a03d9e42c
commit
bd4701d286
@ -2703,7 +2703,8 @@ static NTSTATUS cmd_samr_chgpasswd(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, };
|
||||
struct policy_handle user_pol = { 0, };
|
||||
NTSTATUS status, result;
|
||||
const char *user, *oldpass, *newpass;
|
||||
|
Loading…
Reference in New Issue
Block a user