1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00

gpgsm: Fix cached istrusted lookup.

* sm/call-agent.c (gpgsm_agent_istrusted): Actually set istrusted
list.
--

Fixes-commit: 9087c1d3637cf1c61744ece0002dc0dc5675d7c9
This commit is contained in:
Werner Koch 2024-10-10 18:05:57 +02:00
parent 85d8fa57db
commit 69a8aefa5b
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

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