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

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

--

Cherry-pick from master commit of:
	65607fb81d

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 4257cbb06c
commit 4db2e13e2c
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 1 additions and 1 deletions

View File

@ -2981,7 +2981,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
{