Commit 3a2c60e735a9eb201a61291924fbdec0e6d4346f

Carlos Martín Nieto 2014-11-01T10:26:09

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.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/global.c b/src/global.c
index 5238af9..eb570c1 100644
--- a/src/global.c
+++ b/src/global.c
@@ -64,6 +64,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