summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-13 09:58:05 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-13 09:58:05 -0400
commit286d02995ff593cad9414e6755a94221171d9854 (patch)
tree43dc3dec0966fe39731e5e28100fdf02633adef8
parent76e9de7c6d1a22d89053dd4fa8671d5696c52634 (diff)
parent049ba66746006e45d8033d8f88f97ba61d8c5631 (diff)
downloadtor-286d02995ff593cad9414e6755a94221171d9854.tar.gz
tor-286d02995ff593cad9414e6755a94221171d9854.zip
Merge branch 'maint-0.3.3'
-rw-r--r--changes/bug261585
-rw-r--r--src/or/circuitbuild.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/changes/bug26158 b/changes/bug26158
new file mode 100644
index 0000000000..5ae1c30600
--- /dev/null
+++ b/changes/bug26158
@@ -0,0 +1,5 @@
+ o Minor bugfixes (relay):
+ - Relays now correctly block attempts to re-extend to the previous
+ relay by Ed25519 identity. Previously they would warn in this case,
+ but not actually reject the attempt. Fixes bug 26158; bugfix on
+ 0.3.0.1-alpha.
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 09102d0c4c..3d1c9c1abf 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1264,6 +1264,7 @@ circuit_extend(cell_t *cell, circuit_t *circ)
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
"Client asked me to extend back to the previous hop "
"(by Ed25519 ID).");
+ return -1;
}
n_chan = channel_get_for_extend((const char*)ec.node_id,