[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix a few comments



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	circuitbuild.c circuitlist.c 
Log Message:
fix a few comments


Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -d -r1.151 -r1.152
--- circuitbuild.c	17 Oct 2005 02:13:36 -0000	1.151
+++ circuitbuild.c	17 Oct 2005 08:41:58 -0000	1.152
@@ -76,7 +76,7 @@
     }
     if (++attempts > 1<<15) {
       /* Make sure we don't loop forever if all circ_id's are used. This
-       * matters because it's an external DoS vulnerability.
+       * matters because it's an external DoS opportunity.
        */
       log_fn(LOG_WARN,"No unused circ IDs. Failing.");
       return 0;

Index: circuitlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitlist.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- circuitlist.c	6 Oct 2005 22:18:01 -0000	1.60
+++ circuitlist.c	17 Oct 2005 08:41:58 -0000	1.61
@@ -339,8 +339,7 @@
 
 /** Return a circ such that:
  *  - circ-\>n_circ_id or circ-\>p_circ_id is equal to <b>circ_id</b>, and
- *  - circ is attached to <b>conn</b>, either as p_conn, n-conn, or
- *    in p_streams or n_streams.
+ *  - circ is attached to <b>conn</b>, either as p_conn or n_conn.
  * Return NULL if no such circuit exists.
  */
 circuit_t *
@@ -426,7 +425,7 @@
 }
 
 /** Return a circ such that circ is attached to <b>conn</b>, either as
- * p_conn, n-conn, or in p_streams or n_streams or resolving_streams.
+ * p_conn, n_conn, or in p_streams or n_streams or resolving_streams.
  *
  * Return NULL if no such circuit exists.
  */
@@ -477,10 +476,10 @@
   return NULL;
 }
 
-/** Return the first circuit in global_circuitlist after <b>start</b> whose
- * rend_pk_digest field is <b>digest</b> and whose purpose is <b>purpose</b>. Returns
- * NULL if no circuit is found.  If <b>start</b> is NULL, begin at the start of
- * the list.
+/** Return the first circuit in global_circuitlist after <b>start</b>
+ * whose rend_pk_digest field is <b>digest</b> and whose purpose is
+ * <b>purpose</b>. Returns NULL if no circuit is found.
+ * If <b>start</b> is NULL, begin at the start of the list.
  */
 circuit_t *
 circuit_get_next_by_pk_and_purpose(circuit_t *start,