mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
circpad: some more logging changes.
- Add an info log when receiving a STOP command. - Keep warning if we receive padding from a wrong hop.
This commit is contained in:
parent
e54ce03b4f
commit
a15ec8bf84
1 changed files with 3 additions and 1 deletions
|
@ -2821,6 +2821,8 @@ circpad_handle_padding_negotiate(circuit_t *circ, cell_t *cell)
|
|||
/* Free the machine corresponding to this machine type */
|
||||
if (free_circ_machineinfos_with_machine_num(circ,
|
||||
negotiate->machine_type)) {
|
||||
log_info(LD_CIRC, "Received STOP command for machine %u",
|
||||
negotiate->machine_type);
|
||||
goto done;
|
||||
}
|
||||
log_fn(LOG_PROTOCOL_WARN, LD_CIRC,
|
||||
|
@ -2871,7 +2873,7 @@ circpad_handle_padding_negotiated(circuit_t *circ, cell_t *cell,
|
|||
|
||||
/* Verify this came from the expected hop */
|
||||
if (!circpad_padding_is_from_expected_hop(circ, layer_hint)) {
|
||||
log_fn(LOG_PROTOCOL_WARN, LD_CIRC,
|
||||
log_fn(LOG_WARN, LD_CIRC,
|
||||
"Padding negotiated cell from wrong hop!");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue