X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/47a6b94c2389f0e2a4f42706818a12369746b713..a5dd84675905dfc4274cf45424e6f3a9e385e1a7:/sshpubk.c diff --git a/sshpubk.c b/sshpubk.c index ed178fe3..26baa431 100644 --- a/sshpubk.c +++ b/sshpubk.c @@ -824,6 +824,7 @@ struct ssh2_userkey *ssh2_load_userkey(const Filename *filename, /* An incorrect MAC is an unconditional Error if the key is * unencrypted. Otherwise, it means Wrong Passphrase. */ if (cipher) { + error = "wrong passphrase"; ret = SSH2_WRONG_PASSPHRASE; } else { error = "MAC failed";