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);