[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] when returning a list of circuits, don"t return a list of t...
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:
when returning a list of circuits, don't return a list of the same
conn over and over. that's really bad for memory.
Index: circuitlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitlist.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- circuitlist.c 26 Nov 2005 01:43:57 -0000 1.75
+++ circuitlist.c 28 Nov 2005 02:52:17 -0000 1.76
@@ -443,7 +443,7 @@
for (circ=global_circuitlist;circ;circ = circ->next) {
if (!circ->marked_for_close &&
(circ->p_conn == conn || circ->n_conn == conn))
- smartlist_add(res, conn);
+ smartlist_add(res, circ);
}
return res;
}