summaryrefslogtreecommitdiffstats
path: root/sm/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-10-10 18:05:57 +0200
committerWerner Koch <wk@gnupg.org>2024-10-15 09:45:55 +0200
commit374195e741cf1c52daad6c07799d308c8a9f73e3 (patch)
tree84e0edd80294be29ae0ef869403f76351a6817bb /sm/call-agent.c
parentdirmngr: Print a brief list of URLs with LISTCRLS. (diff)
downloadgnupg2-374195e741cf1c52daad6c07799d308c8a9f73e3.tar.xz
gnupg2-374195e741cf1c52daad6c07799d308c8a9f73e3.zip
gpgsm: Fix cached istrusted lookup.
* sm/call-agent.c (gpgsm_agent_istrusted): Actually set istrusted list. -- Fixes-commit: 9087c1d3637cf1c61744ece0002dc0dc5675d7c9
Diffstat (limited to '')
-rw-r--r--sm/call-agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c
index dfaeee61a..542c8495c 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -1037,6 +1037,8 @@ gpgsm_agent_istrusted (ctrl_t ctrl, ksba_cert_t cert, const char *hexfpr,
rc = assuan_transact (agent_ctx, "LISTTRUSTED --status",
NULL, NULL, NULL, NULL,
istrusted_status_cb, &parm);
+ istrusted_cache = parm.cache;
+ parm.cache = NULL;
if (rc)
{
if (gpg_err_code (rc) != GPG_ERR_FORBIDDEN)