diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-10 02:28:48 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-10 02:28:48 +0100 |
commit | 9854369a729b9fde43eac2e2f7154f5187378787 (patch) | |
tree | c70347cccf0b0ba44a21d309530086af14d9702d /g10/call-agent.c | |
parent | card: Run factory-reset in locked stated also in gpg-card. (diff) | |
download | gnupg2-9854369a729b9fde43eac2e2f7154f5187378787.tar.xz gnupg2-9854369a729b9fde43eac2e2f7154f5187378787.zip |
gpg: Fix agent_delete_key interaction.
* g10/call-agent.c (agent_delete_key): Set up CTX.
--
Fixes-commit: 20acc7c0226550530085a674ef1bb41ebfa39408
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/call-agent.c')
-rw-r--r-- | g10/call-agent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c index 35fb615f0..c87b92ed8 100644 --- a/g10/call-agent.c +++ b/g10/call-agent.c @@ -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); |