X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinpgnt.c;h=7bdf6378f956f760b4a4a3d48207c6812536030f;hb=21101c7397e460933635a7bfed813864fc4f88fe;hp=fa4d1d101c33c6113fad3353967ee7911ca292be;hpb=44c107d56aa0e408fd4dd710134151f09149e526;p=PuTTY.git diff --git a/windows/winpgnt.c b/windows/winpgnt.c index fa4d1d10..7bdf6378 100644 --- a/windows/winpgnt.c +++ b/windows/winpgnt.c @@ -377,11 +377,11 @@ static void win_add_keyfile(Filename *filename) NULL, PassphraseProc, (LPARAM) &pps); passphrase_box = NULL; - sfree(err); - if (!dlgret) goto done; /* operation cancelled */ + sfree(err); + assert(passphrase != NULL); ret = pageant_add_keyfile(filename, passphrase, &err);