mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix a copy-paste error in the fix for #23693.
Found by coverity; CID 25912; bug not in any released Tor.
This commit is contained in:
parent
5cc3a0379e
commit
bb35405d2a
@ -143,7 +143,7 @@ dup_onion_keys(crypto_pk_t **key, crypto_pk_t **last)
|
|||||||
if (onionkey)
|
if (onionkey)
|
||||||
*key = crypto_pk_copy_full(onionkey);
|
*key = crypto_pk_copy_full(onionkey);
|
||||||
else
|
else
|
||||||
*last = NULL;
|
*key = NULL;
|
||||||
if (lastonionkey)
|
if (lastonionkey)
|
||||||
*last = crypto_pk_copy_full(lastonionkey);
|
*last = crypto_pk_copy_full(lastonionkey);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user