tools:gpg-card: Fix an error code for Reset Code.

* tools/gpg-card.c (cmd_unblock): Use GPG_ERR_NO_RESET_CODE.

--

GnuPG-bug-id: 6425
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-11-08 13:31:55 +09:00
parent e6b3d53db3
commit 65607fb81d
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 1 additions and 1 deletions

View File

@ -2983,7 +2983,7 @@ cmd_unblock (card_info_t info)
else if (!info->chvinfo[1])
{
log_error (_("Reset Code not or not anymore available\n"));
err = gpg_error (GPG_ERR_PIN_BLOCKED);
err = gpg_error (GPG_ERR_NO_RESET_CODE);
}
else
{