mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +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 *init_key_from_file(const char *fname)
|
||||||
{
|
{
|
||||||
crypto_pk_env_t *prkey = NULL;
|
crypto_pk_env_t *prkey = NULL;
|
||||||
int fd = -1;
|
|
||||||
FILE *file = NULL;
|
FILE *file = NULL;
|
||||||
|
|
||||||
if (!(prkey = crypto_new_pk_env())) {
|
if (!(prkey = crypto_new_pk_env())) {
|
||||||
@ -130,8 +129,6 @@ crypto_pk_env_t *init_key_from_file(const char *fname)
|
|||||||
error:
|
error:
|
||||||
if (prkey)
|
if (prkey)
|
||||||
crypto_free_pk_env(prkey);
|
crypto_free_pk_env(prkey);
|
||||||
if (fd >= 0 && !file)
|
|
||||||
close(fd);
|
|
||||||
if (file)
|
if (file)
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user