diff options
| author | Werner Koch <[email protected]> | 2024-04-05 12:45:05 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2024-04-05 12:45:05 +0000 |
| commit | b261478c06f07d92a6a9c003316b09c5716da223 (patch) | |
| tree | a0b82153d6ab42bb09b1ed9d1043a76aa301b33b /agent/command.c | |
| parent | gpg: Don't show the "fast path listing" diagnostic with --quiet. (diff) | |
| download | gnupg-b261478c06f07d92a6a9c003316b09c5716da223.tar.gz gnupg-b261478c06f07d92a6a9c003316b09c5716da223.zip | |
agent: Fix error handling of READKEY.
* agent/command.c (cmd_readkey): Jump to leave on reading error.
--
Fixes-commit: d7a3c455c5e29b19b66772f86dda925064e34896
Diffstat (limited to 'agent/command.c')
| -rw-r--r-- | agent/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c index 575456cc5..40322f385 100644 --- a/agent/command.c +++ b/agent/command.c @@ -1418,7 +1418,9 @@ cmd_readkey (assuan_context_t ctx, char *line) goto leave; rc = agent_public_key_from_file (ctrl, grip, &s_pkey); - if (!rc) + if (rc) + goto leave; + else { if (opt_format_ssh) { |
