[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] sometimes, when we just started tor, we haven"t created that
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
circuitlist.c
Log Message:
sometimes, when we just started tor, we haven't created that
smartlist yet. so don't free it.
Index: circuitlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitlist.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- circuitlist.c 10 Dec 2005 09:36:25 -0000 1.85
+++ circuitlist.c 14 Dec 2005 00:52:15 -0000 1.86
@@ -326,8 +326,10 @@
circuit_free(global_circuitlist);
global_circuitlist = next;
}
- smartlist_free(circuits_pending_or_conns);
- circuits_pending_or_conns = NULL;
+ if (circuits_pending_or_conns) {
+ smartlist_free(circuits_pending_or_conns);
+ circuits_pending_or_conns = NULL;
+ }
HT_CLEAR(orconn_circid_map, &orconn_circid_circuit_map);
}