tor/changes/ticket31958
David Goulet 09468cc58b 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>
2019-10-24 11:08:25 -04:00

6 lines
289 B
Plaintext

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.