From: Ken Raeburn Date: Sat, 1 May 2004 01:31:14 +0000 (+0000) Subject: * prng.c (krb5int_prng_cleanup): Destroy the mutex X-Git-Tag: krb5-1.4-beta1~451 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37c80d09c84a5a64311f8d4e34ca79b7a3db4119;p=krb5.git * prng.c (krb5int_prng_cleanup): Destroy the mutex git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16294 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index 0941956e7..53f926e19 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 dd1c4c852..be757d21c 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; }