]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
relay: Use the right max queue size value in log
authorDavid Goulet <dgoulet@torproject.org>
Wed, 25 Jan 2023 19:10:20 +0000 (14:10 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 25 Jan 2023 19:10:20 +0000 (14:10 -0500)
Fixes #40745

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40745 [new file with mode: 0644]
src/core/or/relay.c

diff --git a/changes/ticket40745 b/changes/ticket40745
new file mode 100644 (file)
index 0000000..988dbc5
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfix (relay, logging):
+    - The wrong max queue cell size was used in a protocol warning logging
+      statement. Fixes bug 40745; bugfix on 0.4.7.1-alpha.
index 39a7b783abc3d172cec77487ca251fe000949d63..d4df8ff7f5c03252493ff9e67e665f97f6ca298a 100644 (file)
@@ -3261,7 +3261,7 @@ append_cell_to_circuit_queue(circuit_t *circ, channel_t *chan,
            "%s circuit has %d cells in its queue, maximum allowed is %d. "
            "Closing circuit for safety reasons.",
            (exitward) ? "Outbound" : "Inbound", queue->n,
-           max_circuit_cell_queue_size);
+           max_queue_size);
     circuit_mark_for_close(circ, END_CIRC_REASON_RESOURCELIMIT);
     stats_n_circ_max_cell_reached++;
     return;