mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
clean some dead code (right?)
svn:r1733
This commit is contained in:
parent
4e0dd5bd33
commit
8cc9001391
@ -88,7 +88,6 @@ void rotate_onion_key(void)
|
||||
crypto_pk_env_t *init_key_from_file(const char *fname)
|
||||
{
|
||||
crypto_pk_env_t *prkey = NULL;
|
||||
int fd = -1;
|
||||
FILE *file = NULL;
|
||||
|
||||
if (!(prkey = crypto_new_pk_env())) {
|
||||
@ -130,8 +129,6 @@ crypto_pk_env_t *init_key_from_file(const char *fname)
|
||||
error:
|
||||
if (prkey)
|
||||
crypto_free_pk_env(prkey);
|
||||
if (fd >= 0 && !file)
|
||||
close(fd);
|
||||
if (file)
|
||||
fclose(file);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user