From: Günther Deschner Date: Mon, 11 Feb 2008 09:28:36 +0000 (+0100) Subject: Only call display_lsa_query_info on success in rpcclient. X-Git-Tag: samba-3.3.0pre1~3530 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dad7ae3e1a72a9e291e421f136461c60bcfbe318;p=thirdparty%2Fsamba.git Only call display_lsa_query_info on success in rpcclient. Guenther --- diff --git a/source/rpcclient/cmd_lsarpc.c b/source/rpcclient/cmd_lsarpc.c index 5d42cff7384..a49dc38ad93 100644 --- a/source/rpcclient/cmd_lsarpc.c +++ b/source/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);