double-checked the return results from new querysecret command, corrected
authorLuke Leighton <lkcl@samba.org>
Thu, 18 Mar 1999 22:13:15 +0000 (22:13 +0000)
committerLuke Leighton <lkcl@samba.org>
Thu, 18 Mar 1999 22:13:15 +0000 (22:13 +0000)
my corrections :)
(This used to be commit 082109369b981713f68c13053b6419686f69ef26)

source3/rpcclient/cmd_lsarpc.c

index 25471fa9c35c2ef4e6dc027d8ecfa46cdfbe772c..7542faceaf3e4507911ee42d1790864b5596c6aa 100644 (file)
@@ -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;