gpg: Fix wrong error message for keytocard.

* g10/call-agent.c (agent_keytocard): Emit SC_OP_FAILURE.
--

GnuPG-bug-id: 6122
This commit is contained in:
Werner Koch 2022-08-04 12:41:33 +02:00
parent 6583abedf3
commit f2a81e3745
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 3 deletions

View File

@ -974,9 +974,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;
}