bugfix: when rotating onion key, do it (more) correctly

svn:r1688
This commit is contained in:
Roger Dingledine 2004-04-25 03:38:19 +00:00
parent 0b31d0d4e8
commit 7e2a2a7f81

View File

@ -61,7 +61,7 @@ void rotate_onion_key(void)
log(LOG_ERR, "Error creating crypto environment."); log(LOG_ERR, "Error creating crypto environment.");
goto error; goto error;
} }
if (crypto_pk_generate_key(onionkey)) { if (crypto_pk_generate_key(prkey)) {
log(LOG_ERR, "Error generating key: %s", crypto_perror()); log(LOG_ERR, "Error generating key: %s", crypto_perror());
goto error; goto error;
} }