aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-04-25 09:24:56 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-04-25 09:27:34 -0400
commit368b0913293dec9b392bce288753f5d90c130431 (patch)
treeec41d8c3f1d9622f51839553430a2871184b1a6f /src/or
parent91dd4a00f7d4891e24187a849933547128aeeb9f (diff)
downloadtor-368b0913293dec9b392bce288753f5d90c130431.tar.gz
tor-368b0913293dec9b392bce288753f5d90c130431.zip
relay: Change LD_BUG log to LD_PROTOCOL_WARN
That log statement can be triggered if somebody on the Internet behaves badly which is possible with buggy implementation for instance. Fixes #21293 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or')
-rw-r--r--src/or/relay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 8524080939..1842012ed7 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -226,7 +226,8 @@ circuit_receive_relay_cell(cell_t *cell, circuit_t *circ,
return 0;
if (relay_crypt(circ, cell, cell_direction, &layer_hint, &recognized) < 0) {
- log_warn(LD_BUG,"relay crypt failed. Dropping connection.");
+ log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
+ "relay crypt failed. Dropping connection.");
return -END_CIRC_REASON_INTERNAL;
}