1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-09 21:28:51 +01:00

agent: Fix error handling of READKEY.

* agent/command.c (cmd_readkey): Jump to leave on reading error.
--

Fixes-commit: d7a3c455c5
This commit is contained in:
Werner Koch 2024-04-05 14:45:05 +02:00
parent 548fd7bca7
commit b261478c06
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1418,7 +1418,9 @@ cmd_readkey (assuan_context_t ctx, char *line)
goto leave; goto leave;
rc = agent_public_key_from_file (ctrl, grip, &s_pkey); rc = agent_public_key_from_file (ctrl, grip, &s_pkey);
if (!rc) if (rc)
goto leave;
else
{ {
if (opt_format_ssh) if (opt_format_ssh)
{ {