summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-03-18 22:13:15 +0000
committerLuke Leighton <lkcl@samba.org>1999-03-18 22:13:15 +0000
commit6cc71c5354bc352daab0b76f9298c13ad0715c71 (patch)
treeae3129085cad3d5e23eb88bab0f8933f11629dd5 /source3/rpcclient
parent60d632173b63f379d009af8dd464fb05db052877 (diff)
downloadsamba-6cc71c5354bc352daab0b76f9298c13ad0715c71.tar.gz
samba-6cc71c5354bc352daab0b76f9298c13ad0715c71.tar.bz2
samba-6cc71c5354bc352daab0b76f9298c13ad0715c71.zip
double-checked the return results from new querysecret command, corrected
my corrections :) (This used to be commit 082109369b981713f68c13053b6419686f69ef26)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 25471fa9c3..7542faceaf 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -346,11 +346,11 @@ void cmd_lsa_query_secret(struct client_info *info)
&info->dom.lsa_info_pol, False) : False;
/* lookup domain controller; receive a policy handle */
- res = res ? lsa_open_secret(smb_cli, nt_pipe_fnum,
+ res1 = res ? lsa_open_secret(smb_cli, nt_pipe_fnum,
&info->dom.lsa_info_pol,
secret_name, 0x20003, &hnd_secret) : False;
- res1 = res ? lsa_query_secret(smb_cli, nt_pipe_fnum,
+ res1 = res1 ? lsa_query_secret(smb_cli, nt_pipe_fnum,
&hnd_secret, enc_secret, &last_update) : False;
res1 = res1 ? lsa_close(smb_cli, nt_pipe_fnum, &hnd_secret) : False;