[tor-commits] [tor/maint-0.4.1] Bug 30992: Demote logline of wronghop padding to protocol warn.

nickm at torproject.org nickm at torproject.org
Mon Aug 19 15:11:46 UTC 2019


commit f6bc9d7c7eff9d50e5499007ea3a742b259e6ff9
Author: Mike Perry <mikeperry-git at torproject.org>
Date:   Thu Aug 8 12:24:31 2019 -0500

    Bug 30992: Demote logline of wronghop padding to protocol warn.
    
    This can happen, it's not great, but it's not the worst thing in the world
    either. Deferring full fix for 0.4.2/later.
---
 src/core/or/circuitpadding.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/or/circuitpadding.c b/src/core/or/circuitpadding.c
index 392dc5333..cdebda33f 100644
--- a/src/core/or/circuitpadding.c
+++ b/src/core/or/circuitpadding.c
@@ -2907,7 +2907,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_WARN, LD_CIRC,
+    log_fn(LOG_PROTOCOL_WARN, LD_CIRC,
            "Padding negotiated cell from wrong hop on circuit %u",
              TO_ORIGIN_CIRCUIT(circ)->global_identifier);
     return -1;





More information about the tor-commits mailing list