diff options
author | Günther Deschner <gd@samba.org> | 2008-02-11 10:28:36 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-11 10:52:51 +0100 |
commit | 0ddbeba833e2f0fba9068216ab4ebaefc317bb0b (patch) | |
tree | 80241b506386919a26acd1a5845af44848189d50 /source3 | |
parent | 1042b0ce370669a0f2a08fcda45572f39cebb89f (diff) | |
download | samba-0ddbeba833e2f0fba9068216ab4ebaefc317bb0b.tar.gz samba-0ddbeba833e2f0fba9068216ab4ebaefc317bb0b.tar.bz2 samba-0ddbeba833e2f0fba9068216ab4ebaefc317bb0b.zip |
Only call display_lsa_query_info on success in rpcclient.
Guenther
(This used to be commit dad7ae3e1a72a9e291e421f136461c60bcfbe318)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index 5d42cff738..a49dc38ad9 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -193,8 +193,9 @@ static NTSTATUS cmd_lsa_query_info_policy(struct rpc_pipe_client *cli, &info); } - - display_lsa_query_info(info, info_class); + if (NT_STATUS_IS_OK(result)) { + display_lsa_query_info(info, info_class); + } rpccli_lsa_Close(cli, mem_ctx, &pol); |