]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing "return -1" when checking for Ed25519 ID loops
authorNick Mathewson <nickm@torproject.org>
Tue, 22 May 2018 12:54:17 +0000 (08:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 May 2018 12:54:17 +0000 (08:54 -0400)
Fixes bug 26158; bugfix on 0.3.0.1-alpha.

changes/bug26158 [new file with mode: 0644]
src/or/circuitbuild.c

diff --git a/changes/bug26158 b/changes/bug26158
new file mode 100644 (file)
index 0000000..5ae1c30
--- /dev/null
@@ -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.
index 16cef0e56bf90d09b4ceb59ab7a112a068b0f47c..41ae51a3f268c9271df0aaf47917b00147e8ff03 100644 (file)
@@ -1267,6 +1267,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,