diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-28 00:05:56 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-28 00:05:56 +0000 |
commit | 8cc9001391d010f06553a1576276925bc8fc0667 (patch) | |
tree | cc156706213a65e35f272934316395283a3b9be9 | |
parent | 4e0dd5bd3372b60002f19301db0aa09647fad2d8 (diff) | |
download | tor-8cc9001391d010f06553a1576276925bc8fc0667.tar.gz tor-8cc9001391d010f06553a1576276925bc8fc0667.zip |
clean some dead code (right?)
svn:r1733
-rw-r--r-- | src/or/router.c | 3 |
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; |