Commit 7d49e694 authored by Sergei Golubchik's avatar Sergei Golubchik

fix "use mutex before initialization" bug in example_km plugin

that for some reasons worked on linux, but crashed on windows
parent 966b2366
...@@ -104,8 +104,8 @@ static int example_key_management_plugin_init(void *p) ...@@ -104,8 +104,8 @@ static int example_key_management_plugin_init(void *p)
{ {
/* init */ /* init */
my_rnd_init(&seed, time(0), 0); my_rnd_init(&seed, time(0), 0);
get_latest_key_version(1);
pthread_mutex_init(&mutex, NULL); pthread_mutex_init(&mutex, NULL);
get_latest_key_version(1);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment