commit 049ba66746006e45d8033d8f88f97ba61d8c5631
parent 1c80eb92fa6c5240b1029c5ee1febe2d20b7d882
Author: Nick Mathewson <nickm@torproject.org>
Date: Wed, 13 Jun 2018 09:58:05 -0400
Merge branch 'maint-0.3.2' into maint-0.3.3
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/changes/bug26158 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
@@ -1256,6 +1256,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,