diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-03-08 13:41:20 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-03-08 13:42:43 -0500 |
commit | 9409c7f2f52f192eaf497c56daa485d75358de65 (patch) | |
tree | d348820ff2889407151c5eac0d508db3fd99449e /src/feature | |
parent | 49ce31b2b6c0cfbcccb605ee58b612f73e2a228a (diff) | |
download | tor-9409c7f2f52f192eaf497c56daa485d75358de65.tar.gz tor-9409c7f2f52f192eaf497c56daa485d75358de65.zip |
Don't warn about missing guard state if controller picked first hop
See comments about why this needs a new flag and we can't just use
CIRCUIT_PURPOSE_CONTROLLER.
Fixes #40285; bugfix on 0.3.2.1-alpha.
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/control/control_cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c index 5b75c24692..0456d709f5 100644 --- a/src/feature/control/control_cmd.c +++ b/src/feature/control/control_cmd.c @@ -819,6 +819,7 @@ handle_control_extendcircuit(control_connection_t *conn, if (zero_circ) { /* start a new circuit */ circ = origin_circuit_init(intended_purpose, 0); + circ->first_hop_from_controller = 1; } /* now circ refers to something that is ready to be extended */ |