summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-25 08:01:53 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-25 08:01:53 -0400
commit7c3f87eb4b2c3c4ce3422b3561bee36f3c9956c1 (patch)
tree4847fd9f5bb5fa1389e62a27cdc8365618a6ee0d /src/or/router.c
parent89a3fafd49c046c3cd1c9c34f7db4798272f9ffb (diff)
parentbb35405d2ad01dbc8cf59ed275c41bd7d6098ae8 (diff)
downloadtor-7c3f87eb4b2c3c4ce3422b3561bee36f3c9956c1.tar.gz
tor-7c3f87eb4b2c3c4ce3422b3561bee36f3c9956c1.zip
Merge branch 'maint-0.3.1' into maint-0.3.2
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index f5f8c98496..83e5538a59 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