aboutsummaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-04-23 17:23:04 +0000
committerWerner Koch <[email protected]>2008-04-23 17:23:04 +0000
commita7ced5d0b5e8c45510585f18cb83aba290ebfd20 (patch)
tree58c35b3d7676c5ceec1f3577d58743246808c36b /sm
parentW32 related keyserver fixes. (diff)
downloadgnupg-a7ced5d0b5e8c45510585f18cb83aba290ebfd20.tar.gz
gnupg-a7ced5d0b5e8c45510585f18cb83aba290ebfd20.zip
Fixed a C-89 incompatibility.
Minor changes to make it build on Debian bo. Thanks to Alain Guibert.
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);