mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Determine whether an intro point was in the last HS desc in a sane way
This commit is contained in:
parent
3f6a2d3e2a
commit
68331cbd81
@ -1947,18 +1947,12 @@ rend_services_introduce(void)
|
||||
log_info(LD_REND,"Giving up on %s as intro point for %s.",
|
||||
safe_str_client(extend_info_describe(intro->extend_info)),
|
||||
safe_str_client(service->service_id));
|
||||
if (service->desc) {
|
||||
SMARTLIST_FOREACH(service->desc->intro_nodes, rend_intro_point_t *,
|
||||
dintro, {
|
||||
if (tor_memeq(dintro->extend_info->identity_digest,
|
||||
intro->extend_info->identity_digest, DIGEST_LEN)) {
|
||||
if (intro->listed_in_last_desc) {
|
||||
log_info(LD_REND, "The intro point we are giving up on was "
|
||||
"included in the last published descriptor. "
|
||||
"Marking current descriptor as dirty.");
|
||||
service->desc_is_dirty = now;
|
||||
}
|
||||
});
|
||||
}
|
||||
rend_intro_point_free(intro);
|
||||
smartlist_del(service->intro_nodes,j--);
|
||||
changed = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user