mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
try to detect an assert error earlier
svn:r5834
This commit is contained in:
parent
a789e1ec38
commit
76f1b7415b
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ dup_onion_keys(crypto_pk_env_t **key, crypto_pk_env_t **last)
|
|||
tor_assert(key);
|
||||
tor_assert(last);
|
||||
tor_mutex_acquire(key_lock);
|
||||
tor_assert(onionkey);
|
||||
*key = crypto_pk_dup_key(onionkey);
|
||||
if (lastonionkey)
|
||||
*last = crypto_pk_dup_key(lastonionkey);
|
||||
|
|
Loading…
Add table
Reference in a new issue