From 60d632173b63f379d009af8dd464fb05db052877 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 18 Mar 1999 22:12:05 +0000 Subject: matt, remember: only close handles that you've previously opened. if the lsa_open_secret() succeeds then and only then can you close it. if the lsa_open_policy2() succeeds then and only then can you close it. (This used to be commit 60da0a12555a2e12e27ff2af24e1068a515469c0) --- source3/rpcclient/cmd_lsarpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index a0d60037ec..25471fa9c3 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -353,7 +353,7 @@ void cmd_lsa_query_secret(struct client_info *info) res1 = res ? lsa_query_secret(smb_cli, nt_pipe_fnum, &hnd_secret, enc_secret, &last_update) : False; - res = res ? lsa_close(smb_cli, nt_pipe_fnum, &hnd_secret) : False; + res1 = res1 ? lsa_close(smb_cli, nt_pipe_fnum, &hnd_secret) : False; res = res ? lsa_close(smb_cli, nt_pipe_fnum, &info->dom.lsa_info_pol) : False; -- cgit