clean some dead code (right?)

svn:r1733
This commit is contained in:
Roger Dingledine 2004-04-28 00:05:56 +00:00
parent 4e0dd5bd33
commit 8cc9001391

View File

@ -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;