(krb5int_prng_init): Don't do it here.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16880
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-11-17 Ken Raeburn <raeburn@mit.edu>
+
+ * prng.c (do_yarrow_init): Move mutex initialization here.
+ (krb5int_prng_init): Don't do it here.
+
2004-11-15 Sam Hartman <hartmans@mit.edu>
* t_prng.expected t_prng.reseedtest-expected : Update expected
do_yarrow_init();
if (init_error)
return KRB5_CRYPTO_INTERNAL;
- return k5_mutex_finish_init(&yarrow_lock);
+ return 0;
}
static void do_yarrow_init(void)
unsigned i;
int yerr;
+ yerr = k5_mutex_finish_init(&yarrow_lock);
+ if (yerr) {
+ init_error = yerr;
+ return;
+ }
+
yerr = krb5int_yarrow_init (&y_ctx, NULL);
if ((yerr != YARROW_OK) && (yerr != YARROW_NOT_SEEDED)) {
init_error = yerr;