summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-08 12:56:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:15 -0500
commit277c1baee9b0f41edfc73d02132bfa818ee46363 (patch)
tree7171c81f89d792f7fbb5acdefeb5887b8cab068e /source3/rpcclient
parent3c3b9afe7f229a69d051db8a08ece6ec9349e0a0 (diff)
downloadsamba-277c1baee9b0f41edfc73d02132bfa818ee46363.tar.gz
samba-277c1baee9b0f41edfc73d02132bfa818ee46363.tar.bz2
samba-277c1baee9b0f41edfc73d02132bfa818ee46363.zip
r25572: Fix warnings (values are always true).
(This used to be commit 2c77c3c58e75d6a9c08d723976c37d899a53c99a)
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 31a8e2bdfd..020f4acf4d 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -993,8 +993,7 @@ static NTSTATUS cmd_lsa_query_trustdominfobysid(struct rpc_pipe_client *cli,
display_trust_dom_info(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;
}
@@ -1031,8 +1030,7 @@ static NTSTATUS cmd_lsa_query_trustdominfobyname(struct rpc_pipe_client *cli,
display_trust_dom_info(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(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;
}