diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2008-09-24 17:33:07 +0000 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2008-09-24 17:33:07 +0000 |
commit | 5f457e4fa65e1b38260d2f4098bc93ca4d225b15 (patch) | |
tree | 6ddf42f6466161bcf9f20c49b6b8e5f91f78bdb3 /src | |
parent | 8dfe8194c91c0ddf0c6383f94e3a504d17ecee3e (diff) | |
download | tor-5f457e4fa65e1b38260d2f4098bc93ca4d225b15.tar.gz tor-5f457e4fa65e1b38260d2f4098bc93ca4d225b15.zip |
Minor correction of commentation.
svn:r16958
Diffstat (limited to 'src')
-rw-r--r-- | src/or/rendservice.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 878fe0227d..0518dccad9 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1051,8 +1051,8 @@ rend_service_introduce(origin_circuit_t *circuit, const char *request, crypto_digest_get_digest(digest, diffie_hellman_hash, DIGEST_LEN); crypto_free_digest_env(digest); - /* Iterate over past requests, remove those which are older than one hour, - * and check whether there is one with same Diffie-Hellman, part 1. */ + /* Check whether there is a past request with the same Diffie-Hellman, + * part 1. */ if (!service->accepted_intros) service->accepted_intros = digestmap_new(); @@ -1066,8 +1066,9 @@ rend_service_introduce(origin_circuit_t *circuit, const char *request, goto err; } - /* Add request to access history, including time and hash of - * Diffie-Hellman, part 1. */ + /* Add request to access history, including time and hash of Diffie-Hellman, + * part 1, and possibly remove requests from the history that are older than + * one hour. */ access_time = tor_malloc(sizeof(time_t)); *access_time = now; digestmap_set(service->accepted_intros, diffie_hellman_hash, access_time); |