From e08365777199901d58e7cf4cc269ffabd07b2659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sat, 1 Nov 2014 10:26:09 +0100 Subject: [PATCH] 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. --- src/global.c | 1 + 1 file changed, 1 insertion(+) 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