diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-10 11:12:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-10 11:34:36 +0200 |
commit | e9e5f07a2e956a3e5a4c3cb6fd4b0f77b1bf47bd (patch) | |
tree | e29f414c25fc403952d8d5f1b7a8dc34fccd4f3d | |
parent | b7fc394b8e520f5c77517f130b3d8ebfd7690b97 (diff) | |
download | gnutls-e9e5f07a2e956a3e5a4c3cb6fd4b0f77b1bf47bd.tar.gz |
reset the global time func on init/deinit
-rw-r--r-- | lib/system.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/system.c b/lib/system.c index db9446ea72..8ff8a66041 100644 --- a/lib/system.c +++ b/lib/system.c @@ -291,7 +291,7 @@ static int gnutls_system_mutex_unlock(void **priv) #endif /* NO_LOCKS */ -gnutls_time_func gnutls_time = time; +gnutls_time_func gnutls_time; mutex_init_func gnutls_mutex_init = gnutls_system_mutex_init; mutex_deinit_func gnutls_mutex_deinit = gnutls_system_mutex_deinit; mutex_lock_func gnutls_mutex_lock = gnutls_system_mutex_lock; @@ -318,6 +318,7 @@ int gnutls_system_global_init(void) Crypt32_dll = crypto; #endif #endif + gnutls_time = time; return 0; } @@ -328,6 +329,7 @@ void gnutls_system_global_deinit(void) FreeLibrary(Crypt32_dll); #endif #endif + gnutls_time = time; } |