Add a missing "return -1" when checking for Ed25519 ID loops

Fixes bug 26158; bugfix on 0.3.0.1-alpha.
This commit is contained in:
Nick Mathewson
2018-05-22 08:54:17 -04:00
parent d3a972561a
commit 6c35ad08cf
2 changed files with 6 additions and 0 deletions
+1
View 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,