summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-03-18 22:12:05 +0000
committerLuke Leighton <lkcl@samba.org>1999-03-18 22:12:05 +0000
commit60d632173b63f379d009af8dd464fb05db052877 (patch)
tree657102e9d26f750ee4e026007f8201055e716e5e /source3
parentf7eaf17216c91c66719b2393c7a8716fc55e4e5f (diff)
downloadsamba-60d632173b63f379d009af8dd464fb05db052877.tar.gz
samba-60d632173b63f379d009af8dd464fb05db052877.tar.bz2
samba-60d632173b63f379d009af8dd464fb05db052877.zip
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)
Diffstat (limited to 'source3')
-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;