mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Set DH parameters to NULL on shutdown
If we don't do this, we will use freed memory on restart. Part of 24581.
This commit is contained in:
parent
474ca13d6a
commit
06ffafcb9d
@ -3470,6 +3470,8 @@ crypto_global_cleanup(void)
|
||||
if (dh_param_g)
|
||||
BN_clear_free(dh_param_g);
|
||||
|
||||
dh_param_p = dh_param_p_tls = dh_param_g = NULL;
|
||||
|
||||
#ifndef DISABLE_ENGINES
|
||||
ENGINE_cleanup();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user