diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-27 13:26:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-27 13:26:47 -0400 |
commit | 9e1a3be0645ca2dad7d6eb8aa00559efec945835 (patch) | |
tree | 36f61fa1908795b5e54c348d0c25c0d1477dd1a7 /src/lib/crypt_ops | |
parent | de0b07c634c45297bad794567cb44ab91988b0ca (diff) | |
download | tor-9e1a3be0645ca2dad7d6eb8aa00559efec945835.tar.gz tor-9e1a3be0645ca2dad7d6eb8aa00559efec945835.zip |
Prevent duplicate initialization of NSS DH module
Allowing this didn't do any actual harm, since there aren't any
shared structures or leakable objects here. Still, it's bad style
and might cause trouble in the future.
Closes ticket 27856.
Diffstat (limited to 'src/lib/crypt_ops')
-rw-r--r-- | src/lib/crypt_ops/crypto_dh_nss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_dh_nss.c b/src/lib/crypt_ops/crypto_dh_nss.c index 9a14b809b4..e2d9040f5e 100644 --- a/src/lib/crypt_ops/crypto_dh_nss.c +++ b/src/lib/crypt_ops/crypto_dh_nss.c @@ -53,6 +53,8 @@ crypto_dh_init_nss(void) circuit_dh_param.prime.len = DH1024_KEY_LEN; circuit_dh_param.base.data = dh_generator_data; circuit_dh_param.base.len = 1; + + dh_initialized = 1; } void |