diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-10-13 08:48:31 -0700 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2011-10-30 02:17:05 -0700 |
commit | 3f6a2d3e2a83d60f287c485c4f444220792b0a66 (patch) | |
tree | 6bc7b1010943b142846cb0817a9b2fbcb10e7139 /src/or/rendservice.c | |
parent | 6f035cb2b450e8779bff50d6ed83e4822a49f0fe (diff) | |
download | tor-3f6a2d3e2a83d60f287c485c4f444220792b0a66.tar.gz tor-3f6a2d3e2a83d60f287c485c4f444220792b0a66.zip |
Record which intro points were listed in the last HS desc
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index a341dd672b..96ab7a67aa 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -544,10 +544,17 @@ rend_service_update_descriptor(rend_service_t *service) for (i = 0; i < smartlist_len(service->intro_nodes); ++i) { rend_intro_point_t *intro_svc = smartlist_get(service->intro_nodes, i); rend_intro_point_t *intro_desc; + + /* This intro point won't be listed in the descriptor... */ + intro_svc->listed_in_last_desc = 0; + circ = find_intro_circuit(intro_svc, service->pk_digest); if (!circ || circ->_base.purpose != CIRCUIT_PURPOSE_S_INTRO) continue; + /* ...unless this intro point is listed in the descriptor. */ + intro_svc->listed_in_last_desc = 1; + /* We have an entirely established intro circuit. Publish it in * our descriptor. */ intro_desc = tor_malloc_zero(sizeof(rend_intro_point_t)); |