X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/532696ffc931ad73d8b50403aa51c036d00e93f8..b81cca98c2709d60a25ec96b0871d26b62e35d0a:/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";