[or-cvs] clean some dead code (right?)

Roger Dingledine arma at seul.org
Wed Apr 28 00:05:58 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	router.c 
Log Message:
clean some dead code (right?)


Index: router.c
===================================================================
RCS file: /home/or/cvsroot/src/or/router.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- router.c	26 Apr 2004 18:09:50 -0000	1.33
+++ router.c	28 Apr 2004 00:05:56 -0000	1.34
@@ -88,7 +88,6 @@
 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 @@
  error:
   if (prkey)
     crypto_free_pk_env(prkey);
-  if (fd >= 0 && !file)
-    close(fd);
   if (file)
     fclose(file);
   return NULL;



More information about the tor-commits mailing list