From 8cc9001391d010f06553a1576276925bc8fc0667 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 28 Apr 2004 00:05:56 +0000 Subject: [PATCH] clean some dead code (right?) svn:r1733 --- src/or/router.c | 3 --- 1 file changed, 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;