diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-09 10:56:54 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-05-10 09:11:57 +0200 |
commit | a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a (patch) | |
tree | fcbeacf43b8decc08f9f891f93f63af15d9e2b32 | |
parent | 1e3b5ec9518b302dd13c0c99c23f0a4489469d58 (diff) | |
download | samba-a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a.tar.gz samba-a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a.tar.bz2 samba-a4b7a1eb26dedb0902c9b0cf447e4f061b877c7a.zip |
s3: Fix Coverity ID 242721 Uninitialized scalar variable
In an error path we are closing domain_pol without opening it
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 7b8dda2ae8..a0db1aa573 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -880,7 +880,8 @@ static NTSTATUS cmd_samr_enum_dom_users(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_users, i; struct samr_SamArray *dom_users = NULL; |