diff options
author | Günther Deschner <gd@samba.org> | 2011-05-13 00:19:13 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-05-13 01:22:18 +0200 |
commit | 62862e27bbf94aa52623f64f17fbda8a2db38095 (patch) | |
tree | 8ec1c3b5bb1afc5d19894aada91fdf61bb431bd3 /source3/libnet | |
parent | 04c101e873bd758fae6b7131551f6069ab2fcce3 (diff) | |
download | samba-62862e27bbf94aa52623f64f17fbda8a2db38095.tar.gz samba-62862e27bbf94aa52623f64f17fbda8a2db38095.tar.bz2 samba-62862e27bbf94aa52623f64f17fbda8a2db38095.zip |
s3-libnetjoin: fix uninitialized variable.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May 13 01:22:18 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_join.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index 747e1aaadd..6750120fc9 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -1292,7 +1292,7 @@ static NTSTATUS libnet_join_unjoindomain_rpc(TALLOC_CTX *mem_ctx, struct samr_Ids user_rids; struct samr_Ids name_types; union samr_UserInfo *info = NULL; - struct dcerpc_binding_handle *b; + struct dcerpc_binding_handle *b = NULL; ZERO_STRUCT(sam_pol); ZERO_STRUCT(domain_pol); @@ -1433,7 +1433,7 @@ static NTSTATUS libnet_join_unjoindomain_rpc(TALLOC_CTX *mem_ctx, dcerpc_samr_Close(b, mem_ctx, &user_pol, &result); done: - if (pipe_hnd) { + if (pipe_hnd && b) { if (is_valid_policy_hnd(&domain_pol)) { dcerpc_samr_Close(b, mem_ctx, &domain_pol, &result); } |