diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-25 08:00:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-25 08:00:55 -0400 |
commit | bb35405d2ad01dbc8cf59ed275c41bd7d6098ae8 (patch) | |
tree | a98ef7edf605be9c8ccdcb97657fecf71aa7e12b | |
parent | 5cc3a0379eba0eb4e9baac97468fcaebcc654437 (diff) | |
download | tor-bb35405d2ad01dbc8cf59ed275c41bd7d6098ae8.tar.gz tor-bb35405d2ad01dbc8cf59ed275c41bd7d6098ae8.zip |
Fix a copy-paste error in the fix for #23693.
Found by coverity; CID 25912; bug not in any released Tor.
-rw-r--r-- | src/or/router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index f29ebbdf88..5405d31260 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -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 |