aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-10 12:12:14 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-10 12:12:14 -0400
commit01fc93ffef3843a86710718c12ba9be67dcca2bc (patch)
treed9a407ce9c70dbdf51e9a2c8fb4bfc191e5ed4b4 /src
parentf5258045c4cab07eea443563cac7608d5d3be5ab (diff)
parent0fdad78fe1f20955ba1c0c93c752e20063c0bb58 (diff)
downloadtor-01fc93ffef3843a86710718c12ba9be67dcca2bc.tar.gz
tor-01fc93ffef3843a86710718c12ba9be67dcca2bc.zip
Merge remote-tracking branch 'dgoulet/bug16706_031_01'
Diffstat (limited to 'src')
-rw-r--r--src/or/relay.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index a7a5071198..5139036327 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -257,8 +257,13 @@ circuit_receive_relay_cell(cell_t *cell, circuit_t *circ,
log_debug(LD_OR,"Sending to origin.");
if ((reason = connection_edge_process_relay_cell(cell, circ, conn,
layer_hint)) < 0) {
- log_warn(LD_OR,
- "connection_edge_process_relay_cell (at origin) failed.");
+ /* If a client is trying to connect to unknown hidden service port,
+ * END_CIRC_AT_ORIGIN is sent back so we can then close the circuit.
+ * Do not log warn as this is an expected behavior for a service. */
+ if (reason != END_CIRC_AT_ORIGIN) {
+ log_warn(LD_OR,
+ "connection_edge_process_relay_cell (at origin) failed.");
+ }
return reason;
}
}