summaryrefslogtreecommitdiffstats
path: root/g10/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-08-04 12:41:33 +0200
committerWerner Koch <wk@gnupg.org>2022-08-04 12:41:33 +0200
commit189102ac17dc40a74932e48a1607f25421c28aa4 (patch)
treef017c73e137655e6c46722c183dd6a121b6ece3e /g10/call-agent.c
parentcommon: Silence warnings from AllowSetForegroundWindow. (diff)
downloadgnupg2-189102ac17dc40a74932e48a1607f25421c28aa4.tar.xz
gnupg2-189102ac17dc40a74932e48a1607f25421c28aa4.zip
gpg: Fix wrong error message for keytocard.
* g10/call-agent.c (agent_keytocard): Emit SC_OP_FAILURE. -- GnuPG-bug-id: 6122
Diffstat (limited to 'g10/call-agent.c')
-rw-r--r--g10/call-agent.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c
index 7c21a9a84..27b5cacfb 100644
--- a/g10/call-agent.c
+++ b/g10/call-agent.c
@@ -1114,9 +1114,7 @@ agent_keytocard (const char *hexgrip, int keyno, int force,
rc = assuan_transact (agent_ctx, line, NULL, NULL, default_inq_cb, &parm,
NULL, NULL);
- if (rc)
- return rc;
-
+ status_sc_op_failure (rc);
return rc;
}