aboutsummaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog5
-rw-r--r--sm/certchain.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index bff7f1bee..7fad93802 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-23 Werner Koch <[email protected]>
+
+ * certchain.c (find_up): Make correct C89 code. Declare variable
+ at the top of the block. Reported by Alain Guibert.
+
2008-04-09 Werner Koch <[email protected]>
* verify.c (gpgsm_verify): Print the message hash values on error.
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);