[or-cvs] orconn_identity_map was another static variable that started

arma at seul.org arma at seul.org
Wed Dec 14 01:02:37 UTC 2005


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

Modified Files:
	connection_or.c 
Log Message:
orconn_identity_map was another static variable that started
out NULL and didn't change until it needed to change.


Index: connection_or.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_or.c,v
retrieving revision 1.202
retrieving revision 1.203
diff -u -d -r1.202 -r1.203
--- connection_or.c	11 Dec 2005 11:54:55 -0000	1.202
+++ connection_or.c	14 Dec 2005 01:02:35 -0000	1.203
@@ -76,8 +76,10 @@
     }
   }
 
-  digestmap_free(orconn_identity_map, NULL);
-  orconn_identity_map = NULL;
+  if (orconn_identity_map) {
+    digestmap_free(orconn_identity_map, NULL);
+    orconn_identity_map = NULL;
+  }
 }
 
 /** Change conn->identity_digest to digest, and add conn into



More information about the tor-commits mailing list