summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/crypto/ChangeLog2
-rw-r--r--src/lib/crypto/prng.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog
index 0941956e7b..53f926e191 100644
--- a/src/lib/crypto/ChangeLog
+++ b/src/lib/crypto/ChangeLog
@@ -20,6 +20,8 @@
before processing the input.
(krb5_c_random_make_octets): Lock the mutex before extracting
random bytes.
+ (krb5int_prng_cleanup): Destroy the mutex.
+
* Makefile.in (LIBINITFUNC, LIBFINIFUNC): New variables.
* libk5crypto.exports: Drop the library init/fini functions and
diff --git a/src/lib/crypto/prng.c b/src/lib/crypto/prng.c
index dd1c4c8521..be757d21ce 100644
--- a/src/lib/crypto/prng.c
+++ b/src/lib/crypto/prng.c
@@ -145,6 +145,7 @@ void krb5int_prng_cleanup (void)
{
if (inited)
krb5int_yarrow_final (&y_ctx);
+ k5_mutex_destroy(&yarrow_lock);
inited = 0;
}