diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-25 03:38:15 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-25 03:38:15 +0100 |
commit | c3a20c88fb30b0fc4ce50a01de97fae333003682 (patch) | |
tree | e8e041d8811785e6c045c2f7423ff55af742dda6 /scd/command.c | |
parent | scd,nks: Fix SEGV for learn for older card. (diff) | |
download | gnupg2-c3a20c88fb30b0fc4ce50a01de97fae333003682.tar.xz gnupg2-c3a20c88fb30b0fc4ce50a01de97fae333003682.zip |
scd: Fix an error return for READKEY.
* scd/command.c (cmd_readkey): Return when error.
--
GnuPG-bug-id: 5150
Suggested-by: Ingo Klöcker
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scd/command.c b/scd/command.c index c1cded6b1..5eb97fb20 100644 --- a/scd/command.c +++ b/scd/command.c @@ -736,6 +736,9 @@ cmd_readkey (assuan_context_t ctx, char *line) else rc = gpg_error (GPG_ERR_NO_SECKEY); + if (rc) + goto leave; + if (opt_nokey) ; else if (advanced) |