summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-10-24 11:08:25 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-10-24 11:08:25 -0400
commit09468cc58b52132af1232e2cd3925c273382bba6 (patch)
tree5034cb9d6973a3395f6af5033f4abcd1d19a4c64 /changes
parent76939cf2932d557754ca5cfced6ac5736adf38ef (diff)
downloadtor-09468cc58b52132af1232e2cd3925c273382bba6.tar.gz
tor-09468cc58b52132af1232e2cd3925c273382bba6.zip
dir: Look if circuit is closed in connection_dir_is_anonymous()
Before inspecting the p_chan, we must check if the circuit is marked for close because if it is the case, the channels are nullified from the circuit. Several valid cases can mark the circuit for close of the directory connection. Fixes #31958 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'changes')
-rw-r--r--changes/ticket319585
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/ticket31958 b/changes/ticket31958
new file mode 100644
index 0000000000..8206064dfe
--- /dev/null
+++ b/changes/ticket31958
@@ -0,0 +1,5 @@
+ o Minor bugfixes (directory):
+ - When checking if a directory connection is anonymous, test if the circuit
+ was marked for close before looking at its channel. This avoids a BUG()
+ stacktrace in case it was previously closed. Fixes bug 31958; bugfix on
+ 0.4.2.1-alpha.