summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-09 10:56:54 +0200
committerVolker Lendecke <vl@samba.org>2012-05-10 09:11:57 +0200
commitbd4701d2869c8f5271c72fe4271c2ba4772acfad (patch)
tree0ff34104c537ca128527c202b3b0c3799d00ea7a /source3
parent2a03d9e42c71bc164936d3e46e1240494ca33bd5 (diff)
downloadsamba-bd4701d2869c8f5271c72fe4271c2ba4772acfad.tar.gz
samba-bd4701d2869c8f5271c72fe4271c2ba4772acfad.tar.bz2
samba-bd4701d2869c8f5271c72fe4271c2ba4772acfad.zip
s3: Fix Coverity ID 242717 Uninitialized scalar variable
In an error path we are closing domain_pol without opening it
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index ebc13c3334..022230becb 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -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;