mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
scd: Fix possibly inhibited checkpin of the admin pin.
* scd/app-openpgp.c (do_check_pin): Do not check a byte of a released buffer. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
3ca1f4098c
commit
c83e250ef3
@ -3497,7 +3497,7 @@ do_check_pin (app_t app, const char *keyidstr,
|
|||||||
log_info (_("card is permanently locked!\n"));
|
log_info (_("card is permanently locked!\n"));
|
||||||
return gpg_error (GPG_ERR_BAD_PIN);
|
return gpg_error (GPG_ERR_BAD_PIN);
|
||||||
}
|
}
|
||||||
else if (value[6] < 3)
|
else if (count < 3)
|
||||||
{
|
{
|
||||||
log_info (_("verification of Admin PIN is currently prohibited "
|
log_info (_("verification of Admin PIN is currently prohibited "
|
||||||
"through this command\n"));
|
"through this command\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user