summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 26a4b97f6d..08743abf8d 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -56,7 +56,8 @@ crypto_pk_env_t *get_previous_onion_key(void) {
void dup_onion_keys(crypto_pk_env_t **key, crypto_pk_env_t **last)
{
- tor_assert(key && last);
+ tor_assert(key);
+ tor_assert(last);
tor_mutex_acquire(key_lock);
*key = crypto_pk_dup_key(onionkey);
if (lastonionkey)