summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/or/router.c b/src/or/router.c
index a1e0e4ce30..1fdd46f411 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -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;