Commit 13cf9644 authored by Alexander Færøy's avatar Alexander Færøy 🍍
Browse files

Remove unnecessary non-fatal assertion.

This patch removes a call to `tor_assert_nonfatal()` if
`extend_info_from_node()` returns NULL. This is unnecessary as we
already handle the case where `info` is NULL in the next `if (!info) {
... }` block in the code.

See: tor#32666.
parent e5a0c739
o Minor bugfixes (onion services):
- Avoid a non-fatal assertion in certain edge-cases when establishing a
circuit to onion service. Fixes bug 32666; bugfix on 0.3.0.3-alpha.
...@@ -2456,7 +2456,6 @@ onion_extend_cpath(origin_circuit_t *circ) ...@@ -2456,7 +2456,6 @@ onion_extend_cpath(origin_circuit_t *circ)
choose_good_middle_server(purpose, state, circ->cpath, cur_len); choose_good_middle_server(purpose, state, circ->cpath, cur_len);
if (r) { if (r) {
info = extend_info_from_node(r, 0); info = extend_info_from_node(r, 0);
tor_assert_nonfatal(info);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment