diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-20 14:52:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-20 14:52:56 -0400 |
commit | 1bb4a4f9bdf24706a459e4aefb2b0fb75622f7ac (patch) | |
tree | d613e68826eb910fe85d313cff7639dda7e30aa9 /src/or/or.h | |
parent | edaea773e57cc39e892643bcce12c755810f508b (diff) | |
download | tor-1bb4a4f9bdf24706a459e4aefb2b0fb75622f7ac.tar.gz tor-1bb4a4f9bdf24706a459e4aefb2b0fb75622f7ac.zip |
Send NETINFO on receiving a NETINFO if we have not yet sent one.
Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE. But bridges, when receiving a
connection, would never send AUTH_CHALLENGE. So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.
Fixes bug 9546.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 3dc96b9a9d..8c6c1e3635 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1357,6 +1357,9 @@ typedef struct or_handshake_state_t { /* True iff we've received valid authentication to some identity. */ unsigned int authenticated : 1; + /* True iff we have sent a netinfo cell */ + unsigned int sent_netinfo : 1; + /** True iff we should feed outgoing cells into digest_sent and * digest_received respectively. * |