From 37c80d09c84a5a64311f8d4e34ca79b7a3db4119 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 1 May 2004 01:31:14 +0000 Subject: [PATCH] * prng.c (krb5int_prng_cleanup): Destroy the mutex git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16294 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/ChangeLog | 2 ++ src/lib/crypto/prng.c | 1 + 2 files changed, 3 insertions(+) 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; } -- 2.26.2