aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2006-12-18 01:03:07 +0000
committerMarcus Brinkmann <[email protected]>2006-12-18 01:03:07 +0000
commitf1f975577ea11db080ce28fd8ac28f16dadb9eba (patch)
treec850df9f785b09a8f9ab9dc948c6a0eb91307c61
parentSome build fixes for platforms like OSX where we use the built-in libintl. (diff)
downloadgnupg-f1f975577ea11db080ce28fd8ac28f16dadb9eba.tar.gz
gnupg-f1f975577ea11db080ce28fd8ac28f16dadb9eba.zip
2006-12-18 Marcus Brinkmann <[email protected]>
* fingerprint.c (gpgsm_get_fingerprint): Close MD.
-rw-r--r--sm/ChangeLog4
-rw-r--r--sm/fingerprint.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index a3c818a72..94d81d444 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-18 Marcus Brinkmann <[email protected]>
+
+ * fingerprint.c (gpgsm_get_fingerprint): Close MD.
+
2006-11-24 Werner Koch <[email protected]>
* certdump.c (parse_dn_part): Take '#' as a special character only
diff --git a/sm/fingerprint.c b/sm/fingerprint.c
index d6a3900f0..b726af36a 100644
--- a/sm/fingerprint.c
+++ b/sm/fingerprint.c
@@ -79,6 +79,7 @@ gpgsm_get_fingerprint (ksba_cert_t cert, int algo,
}
gcry_md_final (md);
memcpy (array, gcry_md_read(md, algo), len );
+ gcry_md_close (md);
return array;
}