Remove false positives from channel_is_client()
commitaf8cadf3a9febe3dbe22899b828f9f7946a82cef
authorRoger Dingledine <arma@torproject.org>
Tue, 16 Jan 2018 03:33:40 +0000 (15 22:33 -0500)
committerRoger Dingledine <arma@torproject.org>
Tue, 16 Jan 2018 03:33:40 +0000 (15 22:33 -0500)
treedd6d3466b7aea51446ca073ce93f621c9fa670a1
parente3ab27001f81dc05eb1dd1ac8371a35ccce2b50d
Remove false positives from channel_is_client()

Fix a set of false positives where relays would consider connections
to other relays as being client-only connections (and thus e.g.
deserving different link padding schemes) if those relays fell out
of the consensus briefly.

Now we look only at the initial handshake and whether the connection
authenticated as a relay.

Fixes bug 24898; bugfix on 0.3.1.1-alpha.
changes/bug24898 [new file with mode: 0644]
src/or/command.c
src/or/connection_or.c