mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
bugfix: when rotating onion key, do it (more) correctly
svn:r1688
This commit is contained in:
parent
0b31d0d4e8
commit
7e2a2a7f81
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user