Merge remote-tracking branch 'tor-github/pr/749' into maint-0.2.9

This commit is contained in:
teor 2019-03-01 14:15:00 +10:00
commit 7786198eef
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
2 changed files with 8 additions and 0 deletions

5
changes/bug24903 Normal file
View File

@ -0,0 +1,5 @@
o Minor bugfixes (controller, reliability):
- Avoid a (nonfatal) assertion failure when extending a one-hop circuit
from the controller to become a multihop circuit. Fixes bug 24903;
bugfix on 0.2.5.2-alpha.

View File

@ -3364,6 +3364,9 @@ handle_control_extendcircuit(control_connection_t *conn, uint32_t len,
tor_assert(info); tor_assert(info);
} }
circuit_append_new_exit(circ, info); circuit_append_new_exit(circ, info);
if (circ->build_state->desired_path_len > 1) {
circ->build_state->onehop_tunnel = 0;
}
extend_info_free(info); extend_info_free(info);
first_node = 0; first_node = 0;
}); });