summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-11-08 05:31:55 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2023-11-08 05:57:15 +0100
commit4db2e13e2c8c9dd711500c772eedd9a5f7ca6300 (patch)
treedb1035c6368e403547628e2adf64a8dbbdd2e16b
parentscd: Return GPG_ERR_PIN_BLOCKED when it's blocked. (diff)
downloadgnupg2-4db2e13e2c8c9dd711500c772eedd9a5f7ca6300.tar.xz
gnupg2-4db2e13e2c8c9dd711500c772eedd9a5f7ca6300.zip
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: 65607fb81def5fc55320a1abfbb8ebdad9512011 GnuPG-bug-id: 6425 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--tools/gpg-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-card.c b/tools/gpg-card.c
index 290ed485d..4b0457ab9 100644
--- a/tools/gpg-card.c
+++ b/tools/gpg-card.c
@@ -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
{