mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
relay: Use remote reason when sending back a DESTROY
Fix from previous commit where a DESTROY cell is sent instead of a TRUNCATED. Related to #40623 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
8d8afc4efa
commit
dc13936f20
@ -641,7 +641,7 @@ command_process_destroy_cell(cell_t *cell, channel_t *chan)
|
|||||||
* DESTROY cell down the circuit so relays can stop queuing in-flight
|
* DESTROY cell down the circuit so relays can stop queuing in-flight
|
||||||
* cells for this circuit which helps with memory pressure. */
|
* cells for this circuit which helps with memory pressure. */
|
||||||
log_debug(LD_OR, "Received DESTROY cell from n_chan, closing circuit.");
|
log_debug(LD_OR, "Received DESTROY cell from n_chan, closing circuit.");
|
||||||
circuit_mark_for_close(circ, END_CIRC_REASON_TORPROTOCOL);
|
circuit_mark_for_close(circ, reason | END_CIRC_REASON_FLAG_REMOTE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user