]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Have circuit_get_global_origin_circuit_list() return the right list. Bug 21118
authorNick Mathewson <nickm@torproject.org>
Thu, 12 Jan 2017 18:18:09 +0000 (13:18 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 12 Jan 2017 18:18:09 +0000 (13:18 -0500)
changes/bug21118 [new file with mode: 0644]
src/or/circuitlist.c

diff --git a/changes/bug21118 b/changes/bug21118
new file mode 100644 (file)
index 0000000..88e860c
--- /dev/null
@@ -0,0 +1,6 @@
+  o Major bugfixes (client, guard, crash):
+    - In circuit_get_global_origin_list(), return the actual list of
+      origin circuits. The previous version of this code returned
+      the list of all the circuits, and could have caused strange bugs,
+      including possible crashes.  Fixes bug 21118; bugfix on 0.3.0.1-alpha.
+
index 2def522f17405dc127287842b4c4ed622636cbef..c3e3e1e06e0203a19fa4fb731f4ba2959d569420 100644 (file)
@@ -591,7 +591,7 @@ circuit_get_global_origin_circuit_list(void)
 {
   if (NULL == global_origin_circuit_list)
     global_origin_circuit_list = smartlist_new();
-  return global_circuitlist;
+  return global_origin_circuit_list;
 }
 
 /** Function to make circ-\>state human-readable */