* prng.c (krb5int_prng_cleanup): Destroy the mutex
authorKen Raeburn <raeburn@mit.edu>
Sat, 1 May 2004 01:31:14 +0000 (01:31 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 1 May 2004 01:31:14 +0000 (01:31 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16294 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/ChangeLog
src/lib/crypto/prng.c

index 0941956e7be88612596763800057e33d826401b2..53f926e191bdc941e712b4432313608932d50bef 100644 (file)
@@ -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
index dd1c4c852191d76235c5e877619e9a17f5626ac3..be757d21ce05fef7dc49cd1a85db2ce3d62d9124 100644 (file)
@@ -145,6 +145,7 @@ void krb5int_prng_cleanup (void)
 {
     if (inited)
        krb5int_yarrow_final (&y_ctx);
+    k5_mutex_destroy(&yarrow_lock);
     inited = 0;
 }