Browse Source

Help us track bug 8093:

Improve the log message when "Bug/attack: unexpected sendme cell
from client" occurs.
Roger Dingledine 12 years ago
parent
commit
fd49226385
2 changed files with 6 additions and 1 deletions
  1. 4 0
      changes/bug8093
  2. 2 1
      src/or/relay.c

+ 4 - 0
changes/bug8093

@@ -0,0 +1,4 @@
+  o Minor features:
+    - Improve the log message when "Bug/attack: unexpected sendme cell
+      from client" occurs, to help us track bug 8093.
+

+ 2 - 1
src/or/relay.c

@@ -1443,7 +1443,8 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
             /*XXXX024: Downgrade this back to LOG_PROTOCOL_WARN after a while*/
             log_fn(LOG_WARN, LD_PROTOCOL,
                    "Bug/attack: unexpected sendme cell from client. "
-                   "Closing circ.");
+                   "Closing circ (window %d).",
+                   circ->package_window);
             return -END_CIRC_REASON_TORPROTOCOL;
           }
           circ->package_window += CIRCWINDOW_INCREMENT;