aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
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 ec49473cc2..93b61b69ef 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -150,7 +150,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