summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 21:58:34 +0100
committerGünther Deschner <gd@samba.org>2008-02-04 22:12:41 +0100
commite5769f356a9087017bc6a6c9a1435599a09dfdb1 (patch)
tree1bf5599cc0ab35082901fc476ca8df220d8d38a4 /source3/rpcclient
parent0063def0073625bebeb904f00a2fac86ab8c5c96 (diff)
downloadsamba-e5769f356a9087017bc6a6c9a1435599a09dfdb1.tar.gz
samba-e5769f356a9087017bc6a6c9a1435599a09dfdb1.tar.bz2
samba-e5769f356a9087017bc6a6c9a1435599a09dfdb1.zip
Remove some wrong checks for policy handles in rpcclient.
Guenther (This used to be commit 235e440ae6f31f05802e4c8d01174aac880c56cd)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 627f6081bc..887a8cf214 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -978,8 +978,7 @@ static NTSTATUS cmd_lsa_query_trustdominfobysid(struct rpc_pipe_client *cli,
display_trust_dom_info(mem_ctx, &info, info_class, cli->pwd.password);
done:
- if (&pol)
- rpccli_lsa_Close(cli, mem_ctx, &pol);
+ rpccli_lsa_Close(cli, mem_ctx, &pol);
return result;
}
@@ -1026,8 +1025,7 @@ static NTSTATUS cmd_lsa_query_trustdominfobyname(struct rpc_pipe_client *cli,
display_trust_dom_info(mem_ctx, &info, info_class, cli->pwd.password);
done:
- if (&pol)
- rpccli_lsa_Close(cli, mem_ctx, &pol);
+ rpccli_lsa_Close(cli, mem_ctx, &pol);
return result;
}
@@ -1080,8 +1078,7 @@ static NTSTATUS cmd_lsa_query_trustdominfo(struct rpc_pipe_client *cli,
display_trust_dom_info(mem_ctx, &info, info_class, cli->pwd.password);
done:
- if (&pol)
- rpccli_lsa_Close(cli, mem_ctx, &pol);
+ rpccli_lsa_Close(cli, mem_ctx, &pol);
return result;
}