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>
This commit is contained in:
NIIBE Yutaka 2020-11-25 11:38:15 +09:00
parent 006944b856
commit c3a20c88fb
1 changed files with 3 additions and 0 deletions

View File

@ -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)