summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpcclient/cmd_lsarpc.c2
1 files changed, 1 insertions, 1 deletions
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;