mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Do not segfault on missing intro points.
svn:r1616
This commit is contained in:
parent
f07d880f38
commit
ddd45a7c0a
@ -251,7 +251,7 @@ static void rend_service_update_descriptor(rend_service_t *service)
|
|||||||
for (i=0; i < n; ++i) {
|
for (i=0; i < n; ++i) {
|
||||||
router = router_get_by_nickname(smartlist_get(service->intro_nodes, i));
|
router = router_get_by_nickname(smartlist_get(service->intro_nodes, i));
|
||||||
circ = find_intro_circuit(router, service->pk_digest);
|
circ = find_intro_circuit(router, service->pk_digest);
|
||||||
if (circ->purpose == CIRCUIT_PURPOSE_S_INTRO) {
|
if (circ && circ->purpose == CIRCUIT_PURPOSE_S_INTRO) {
|
||||||
/* We have an entirely established intro circuit. */
|
/* We have an entirely established intro circuit. */
|
||||||
d->intro_points[d->n_intro_points++] = tor_strdup(router->nickname);
|
d->intro_points[d->n_intro_points++] = tor_strdup(router->nickname);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user