mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Fix a double-free in Windows Pageant.
Reported by Colin Harrison; occurred on the error path in which the user clicks 'cancel' in the passphrase box.
This commit is contained in:
parent
df006f36ce
commit
c01dff38a3
@ -377,11 +377,11 @@ static void win_add_keyfile(Filename *filename)
|
|||||||
NULL, PassphraseProc, (LPARAM) &pps);
|
NULL, PassphraseProc, (LPARAM) &pps);
|
||||||
passphrase_box = NULL;
|
passphrase_box = NULL;
|
||||||
|
|
||||||
sfree(err);
|
|
||||||
|
|
||||||
if (!dlgret)
|
if (!dlgret)
|
||||||
goto done; /* operation cancelled */
|
goto done; /* operation cancelled */
|
||||||
|
|
||||||
|
sfree(err);
|
||||||
|
|
||||||
assert(passphrase != NULL);
|
assert(passphrase != NULL);
|
||||||
|
|
||||||
ret = pageant_add_keyfile(filename, passphrase, &err);
|
ret = pageant_add_keyfile(filename, passphrase, &err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user