diff options
author | Roger Dingledine <arma@torproject.org> | 2005-10-17 08:41:58 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-10-17 08:41:58 +0000 |
commit | bec2271029463b426a9c87330ff392b9807d62ec (patch) | |
tree | 44df94601d56abd403b977d8f35021d3fb334bc8 | |
parent | 38c6985fff67cf1145af63157ee2358ba22ddc9a (diff) | |
download | tor-bec2271029463b426a9c87330ff392b9807d62ec.tar.gz tor-bec2271029463b426a9c87330ff392b9807d62ec.zip |
fix a few comments
svn:r5262
-rw-r--r-- | src/or/circuitbuild.c | 2 | ||||
-rw-r--r-- | src/or/circuitlist.c | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index a71fde7ed5..b2a8b07fd5 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -76,7 +76,7 @@ get_unique_circ_id_by_conn(connection_t *conn) } 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; diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 6d93564ebe..f9dc99ac4d 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -339,8 +339,7 @@ circuit_get_by_global_id(uint32_t id) /** 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 @@ circuit_get_by_edge_conn(connection_t *conn) } /** 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 @@ circuit_get_by_rend_query_and_purpose(const char *rend_query, uint8_t purpose) 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, |