mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 22:21:37 +00:00
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.
This commit is contained in:
parent
264d74fd40
commit
e083657771
@ -66,6 +66,7 @@ void openssl_locking_function(int mode, int n, const char *file, int line)
|
|||||||
|
|
||||||
static void shutdown_ssl(void)
|
static void shutdown_ssl(void)
|
||||||
{
|
{
|
||||||
|
CRYPTO_set_locking_callback(NULL);
|
||||||
git__free(openssl_locks);
|
git__free(openssl_locks);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user