aboutsummaryrefslogtreecommitdiffstats
path: root/sm/certchain.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/certchain.c')
-rw-r--r--sm/certchain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sm/certchain.c b/sm/certchain.c
index 05a6ace04..03b020e33 100644
--- a/sm/certchain.c
+++ b/sm/certchain.c
@@ -702,12 +702,14 @@ find_up (ctrl_t ctrl, KEYDB_HANDLE kh,
rc = keydb_search_subject (kh, issuer);
if (rc == -1 && !find_next)
{
+ int old;
+
/* Also try to get it from the Dirmngr cache. The function
merely puts it into the ephemeral database. */
find_up_dirmngr (ctrl, kh, NULL, issuer, 0);
/* Not found, let us see whether we have one in the ephemeral key DB. */
- int old = keydb_set_ephemeral (kh, 1);
+ old = keydb_set_ephemeral (kh, 1);
if (!old)
{
keydb_search_reset (kh);