Skip to content

Commit

Permalink
Fix a copy-paste error in the fix for #23693.
Browse files Browse the repository at this point in the history
Found by coverity; CID 25912; bug not in any released Tor.
  • Loading branch information
nmathewson committed Apr 25, 2018
1 parent 5cc3a03 commit bb35405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/or/router.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb35405

Please sign in to comment.