The code of mg_stop() doesn't take into account the initialization done for
open SSL.
The following (or similar code) needs to be added to mg_stop():
/* Kill Open SSL if we have to */
if (ctx->ssl_ctx != NULL)
{
int i;
CRYPTO_set_locking_callback(NULL);
for (i = 0; i < CRYPTO_num_locks(); i++)
pthread_mutex_destroy(&ssl_mutexes[i]);
CRYPTO_set_locking_callback(NULL);
CRYPTO_set_id_callback(NULL);
}
Original issue reported on code.google.com by tsahi.le...@gmail.com on 20 Mar 2011 at 9:49
Original issue reported on code.google.com by
tsahi.le...@gmail.com
on 20 Mar 2011 at 9:49