diff options
author | NIIBE Yutaka <[email protected]> | 2023-11-08 04:31:55 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-11-08 04:31:55 +0000 |
commit | 65607fb81def5fc55320a1abfbb8ebdad9512011 (patch) | |
tree | 0a5f359e76fa53a52fe67c76f63c76e9e608838a /tools/gpg-card.c | |
parent | scd: Return GPG_ERR_PIN_BLOCKED when it's blocked. (diff) | |
download | gnupg-65607fb81def5fc55320a1abfbb8ebdad9512011.tar.gz gnupg-65607fb81def5fc55320a1abfbb8ebdad9512011.zip |
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 <[email protected]>
Diffstat (limited to 'tools/gpg-card.c')
-rw-r--r-- | tools/gpg-card.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-card.c b/tools/gpg-card.c index 12b4be25f..e66348232 100644 --- a/tools/gpg-card.c +++ b/tools/gpg-card.c @@ -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 { |