From 7e2a2a7f81a735278de6011987b5cebe6502c545 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 25 Apr 2004 03:38:19 +0000 Subject: [PATCH] bugfix: when rotating onion key, do it (more) correctly svn:r1688 --- src/or/router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/router.c b/src/or/router.c index b1c8c3f887..f83bcdda34 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -61,7 +61,7 @@ void rotate_onion_key(void) log(LOG_ERR, "Error creating crypto environment."); goto error; } - if (crypto_pk_generate_key(onionkey)) { + if (crypto_pk_generate_key(prkey)) { log(LOG_ERR, "Error generating key: %s", crypto_perror()); goto error; }