mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
if the controller asks to extendcircuit to circid 0, we need to
init the circuit before we can add hops to its cpath. svn:r4586
This commit is contained in:
parent
fe7535c5e2
commit
5643532bd9
@ -1426,6 +1426,11 @@ handle_control_extendcircuit(connection_t *conn, uint32_t len,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!zero_circ) {
|
||||
/* start a new circuit */
|
||||
circ = circuit_init(CIRCUIT_PURPOSE_C_GENERAL, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* now circ refers to something that is ready to be extended */
|
||||
SMARTLIST_FOREACH(routers, routerinfo_t *, r,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user