mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
Pageant: unset decryption_prompt_active flag.
We set it when we started prompting for a passphrase, and never unset it again when the passphrase prompt either succeeded or failed. Until now it hasn't mattered, because the only use of the flag is to suppress duplicate prompts, and once a key has been decrypted, we never need to prompt for it again, duplicate or otherwise. But that's about to change, so now this bug needs fixing.
This commit is contained in:
parent
2e479fabad
commit
1ae8850d93
@ -480,6 +480,7 @@ void pageant_passphrase_request_success(PageantClientDialogId *dlgid,
|
||||
|
||||
assert(gui_request_in_progress);
|
||||
gui_request_in_progress = false;
|
||||
pk->decryption_prompt_active = false;
|
||||
|
||||
if (!pk->skey) {
|
||||
const char *error;
|
||||
@ -536,6 +537,7 @@ void pageant_passphrase_request_refused(PageantClientDialogId *dlgid)
|
||||
|
||||
assert(gui_request_in_progress);
|
||||
gui_request_in_progress = false;
|
||||
pk->decryption_prompt_active = false;
|
||||
|
||||
fail_requests_for_key(pk, "user refused to supply passphrase");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user