gpg: Fix agent_delete_key interaction.

* g10/call-agent.c (agent_delete_key): Set up CTX.

--

Fixes-commit: 20acc7c022
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-11-10 10:28:48 +09:00
parent 12fd10791f
commit 9854369a72
1 changed files with 1 additions and 0 deletions

View File

@ -2993,6 +2993,7 @@ agent_delete_key (ctrl_t ctrl, const char *hexkeygrip, const char *desc,
err = start_agent (ctrl, 0);
if (err)
return err;
dfltparm.ctx = agent_ctx;
if (!hexkeygrip || strlen (hexkeygrip) != 40)
return gpg_error (GPG_ERR_INV_VALUE);