tor/src/core
David Goulet 9ba16c4d03 hs-v3: Close client intro circuits if the descriptor is replaced
When storing a descriptor in the client cache, if we are about to replace an
existing descriptor, make sure to close every introduction circuits of the old
descriptor so we don't have leftovers lying around.

Ticket 27471 describes a situation where tor is sending an INTRODUCE1 cell on
an introduction circuit for which it doesn't have a matching intro point
object (taken from the descriptor).

The main theory is that, after a new descriptor showed up, the introduction
points changed which led to selecting an introduction circuit not used by the
service anymore thus for which we are unable to find the corresponding
introduction point within the descriptor we just fetched.

Closes #27471.

Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-10-18 12:56:51 -04:00
..
crypto Move the non-crypto parts of onion.c out of src/core/crypto 2018-09-21 09:14:05 -04:00
mainloop Merge branch 'maint-0.3.4' 2018-10-17 13:02:23 -04:00
or hs-v3: Close client intro circuits if the descriptor is replaced 2018-10-18 12:56:51 -04:00
proto Merge branch 'bug27772_squashed' 2018-10-14 15:31:52 -04:00
include.am Extract addr-policy parsing code. 2018-10-01 11:17:19 -05:00