mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Adjust control_reason when adjusting reason (related to 7902)
This commit is contained in:
parent
d1b5ae903f
commit
e53e6caac5
@ -710,7 +710,7 @@ connection_ap_process_end_not_open(
|
||||
struct in_addr in;
|
||||
node_t *exitrouter;
|
||||
int reason = *(cell->payload+RELAY_HEADER_SIZE);
|
||||
int control_reason = reason | END_STREAM_REASON_FLAG_REMOTE;
|
||||
int control_reason;
|
||||
edge_connection_t *edge_conn = ENTRY_TO_EDGE_CONN(conn);
|
||||
(void) layer_hint; /* unused */
|
||||
|
||||
@ -738,6 +738,8 @@ connection_ap_process_end_not_open(
|
||||
reason = END_STREAM_REASON_MISC;
|
||||
}
|
||||
|
||||
control_reason = reason | END_STREAM_REASON_FLAG_REMOTE;
|
||||
|
||||
if (edge_reason_is_retriable(reason) &&
|
||||
/* avoid retry if rend */
|
||||
!connection_edge_is_rendezvous_stream(edge_conn)) {
|
||||
|
Loading…
Reference in New Issue
Block a user