mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-20 21:29:58 +01:00
sm: Fix reporting of bad passphrase error
* sm/minip12.c (p12_parse): Set badpass flag to result in ctx. -- Fixes-commit: 4c14bbf56fb544541bd65f9d6e6e0b81779dcab6 GnuPG-bug-id: 5713, 6037 (cherry picked from commit a47b3a4087349f3873eb04a83dc2a0f512cacf86)
This commit is contained in:
parent
cd020284c9
commit
94092793f6
@ -1946,7 +1946,10 @@ p12_parse (const unsigned char *buffer, size_t length, const char *pw,
|
||||
where = "bag.encryptedData";
|
||||
consumed = 0;
|
||||
if (parse_bag_encrypted_data (&ctx, p, n, (p - p_start), &consumed))
|
||||
goto bailout;
|
||||
{
|
||||
*r_badpass = ctx.badpass;
|
||||
goto bailout;
|
||||
}
|
||||
if (lenndef)
|
||||
len += consumed;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user