summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-11-01 10:26:09 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-11-01 10:47:22 +0100
commite08365777199901d58e7cf4cc269ffabd07b2659 (patch)
treea533379b2b75bda57e77648b98f03c89e7d5ebdf
parent264d74fd4088585fa9fb6ffd6d9afe280c0048bb (diff)
downloadlibgit2-e08365777199901d58e7cf4cc269ffabd07b2659.tar.gz
ssl: clear the OpenSSL locking function
We're freeing the memory which holds the locks so we must make sure that the locking function doesn't try to use it.
-rw-r--r--src/global.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c
index 1e6bf82f9..2435b5673 100644
--- a/src/global.c
+++ b/src/global.c
@@ -66,6 +66,7 @@ void openssl_locking_function(int mode, int n, const char *file, int line)
static void shutdown_ssl(void)
{
+ CRYPTO_set_locking_callback(NULL);
git__free(openssl_locks);
}
#endif