Skip to content
Snippets Groups Projects
Commit bb35405d authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix a copy-paste error in the fix for #23693.

Found by coverity; CID 25912; bug not in any released Tor.
parent 5cc3a037
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ dup_onion_keys(crypto_pk_t **key, crypto_pk_t **last)
if (onionkey)
*key = crypto_pk_copy_full(onionkey);
else
*last = NULL;
*key = NULL;
if (lastonionkey)
*last = crypto_pk_copy_full(lastonionkey);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment