diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-06-11 14:28:38 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-07-23 12:22:26 +0300 |
commit | 5aa526c2d8a57183f54065ad5d907fc02a90688f (patch) | |
tree | 2048c71dc65203c17b7528a6e93d213346ad1e8f | |
parent | a3089662c0e20bbddd17e6187f9fd3a00b1fe0c4 (diff) | |
download | tor-5aa526c2d8a57183f54065ad5d907fc02a90688f.tar.gz tor-5aa526c2d8a57183f54065ad5d907fc02a90688f.zip |
circpad: some more logging changes.
- Add an info log when receiving a STOP command.
- Keep warning if we receive padding from a wrong hop.
-rw-r--r-- | src/core/or/circuitpadding.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/or/circuitpadding.c b/src/core/or/circuitpadding.c index 8346ea4aed..aa38b0ffc3 100644 --- a/src/core/or/circuitpadding.c +++ b/src/core/or/circuitpadding.c @@ -2449,6 +2449,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, @@ -2498,7 +2500,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; } |