diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-05 21:19:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-05 21:19:53 +0000 |
commit | 339f09405608ac5277fc0f43f459352967e7803d (patch) | |
tree | cc5d0348b4046acd4b81ef3cf5a881663da1b80b /src/or/router.c | |
parent | a34550667298dcff6cbd7333288d71808b800b33 (diff) | |
download | tor-339f09405608ac5277fc0f43f459352967e7803d.tar.gz tor-339f09405608ac5277fc0f43f459352967e7803d.zip |
Refactor some code and add some asserts based on scanner results.
svn:r16783
Diffstat (limited to 'src/or/router.c')
-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 4c85a7b2ab..1132f9dca5 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -221,7 +221,6 @@ crypto_pk_env_t * init_key_from_file(const char *fname, int generate, int severity) { crypto_pk_env_t *prkey = NULL; - FILE *file = NULL; if (!(prkey = crypto_new_pk_env())) { log(severity, LD_GENERAL,"Error constructing key"); @@ -279,8 +278,6 @@ init_key_from_file(const char *fname, int generate, int severity) error: if (prkey) crypto_free_pk_env(prkey); - if (file) - fclose(file); return NULL; } |