From: Sebastian Harl Date: Mon, 16 Feb 2015 08:04:18 +0000 (+0100) Subject: ssl utils: During shutdown, destroy mutexes as the last step. X-Git-Tag: sysdb-0.7.0~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eda3c7d87b887c14843483978fb4ecd704ca45cc;p=sysdb.git ssl utils: During shutdown, destroy mutexes as the last step. Even ERR_free_strings() may call CRYPTO_lock. --- diff --git a/src/utils/ssl.c b/src/utils/ssl.c index 0bd41a3..c6a3fcb 100644 --- a/src/utils/ssl.c +++ b/src/utils/ssl.c @@ -244,14 +244,14 @@ sdb_ssl_shutdown(void) { int i; + ERR_free_strings(); + for (i = 0; i < mutexes_num; ++i) pthread_mutex_destroy(&mutexes[i]); if (mutexes) free(mutexes); mutexes = NULL; mutexes_num = 0; - - ERR_free_strings(); } /* sdb_ssl_shutdown */ sdb_ssl_client_t *