aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c
index 2fd9a85d4..b152a5ea4 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1458,7 +1458,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)
{