aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scd/command.c3
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)