aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-10-10 16:05:57 +0000
committerWerner Koch <[email protected]>2024-10-10 16:05:57 +0000
commit69a8aefa5bf77136b77383b94e34ba784c1cce89 (patch)
tree73698af9758400640131630ea8fb31b83c167c5b
parentgpg: Emit status error for an invalid ADSK. (diff)
downloadgnupg-69a8aefa5bf77136b77383b94e34ba784c1cce89.tar.gz
gnupg-69a8aefa5bf77136b77383b94e34ba784c1cce89.zip
gpgsm: Fix cached istrusted lookup.
* sm/call-agent.c (gpgsm_agent_istrusted): Actually set istrusted list. -- Fixes-commit: 9087c1d3637cf1c61744ece0002dc0dc5675d7c9
-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 a7e23a225..4ad7059a5 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -1020,6 +1020,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)