[or-cvs] r16958: {tor} Minor correction of commentation. (tor/trunk/src/or)

kloesing at seul.org kloesing at seul.org
Wed Sep 24 17:33:07 UTC 2008


Author: kloesing
Date: 2008-09-24 13:33:07 -0400 (Wed, 24 Sep 2008)
New Revision: 16958

Modified:
   tor/trunk/src/or/rendservice.c
Log:
Minor correction of commentation.

Modified: tor/trunk/src/or/rendservice.c
===================================================================
--- tor/trunk/src/or/rendservice.c	2008-09-24 17:01:43 UTC (rev 16957)
+++ tor/trunk/src/or/rendservice.c	2008-09-24 17:33:07 UTC (rev 16958)
@@ -1051,8 +1051,8 @@
   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 @@
     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);



More information about the tor-commits mailing list