Determine whether an intro point was in the last HS desc in a sane way

This commit is contained in:
Robert Ransom 2011-10-13 09:41:29 -07:00
parent 3f6a2d3e2a
commit 68331cbd81

View File

@ -1947,17 +1947,11 @@ rend_services_introduce(void)
log_info(LD_REND,"Giving up on %s as intro point for %s.", 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(extend_info_describe(intro->extend_info)),
safe_str_client(service->service_id)); safe_str_client(service->service_id));
if (service->desc) { if (intro->listed_in_last_desc) {
SMARTLIST_FOREACH(service->desc->intro_nodes, rend_intro_point_t *, log_info(LD_REND, "The intro point we are giving up on was "
dintro, { "included in the last published descriptor. "
if (tor_memeq(dintro->extend_info->identity_digest, "Marking current descriptor as dirty.");
intro->extend_info->identity_digest, DIGEST_LEN)) { service->desc_is_dirty = now;
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); rend_intro_point_free(intro);
smartlist_del(service->intro_nodes,j--); smartlist_del(service->intro_nodes,j--);