aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-10-01 21:42:44 +0000
committerRoger Dingledine <arma@torproject.org>2006-10-01 21:42:44 +0000
commit3fcf736c83a42ceeb71c0581cc29255e5b0a6542 (patch)
tree77f860eae45b829b5bcace8f4ca5192f8d66b840 /src
parent4200eb16f9c23be618a05edf92b7904498389373 (diff)
downloadtor-3fcf736c83a42ceeb71c0581cc29255e5b0a6542.tar
tor-3fcf736c83a42ceeb71c0581cc29255e5b0a6542.tar.gz
misc touchups
svn:r8568
Diffstat (limited to 'src')
-rw-r--r--src/or/connection.c5
-rw-r--r--src/or/directory.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 0b87d6bc6..9c64e324f 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -2223,6 +2223,11 @@ assert_connection_ok(connection_t *conn, time_t now)
*/
#endif
+ if (conn->chosen_exit_optional) {
+ tor_assert(conn->type == CONN_TYPE_AP);
+ tor_assert((TO_EDGE_CONN(conn))->chosen_exit_name);
+ }
+
if (conn->type == CONN_TYPE_OR) {
or_connection_t *or_conn = TO_OR_CONN(conn);
if (conn->state == OR_CONN_STATE_OPEN) {
diff --git a/src/or/directory.c b/src/or/directory.c
index 3ac11b6c5..0de573286 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -236,7 +236,7 @@ directory_initiate_command_router(routerinfo_t *router,
}
/** Launch a new connection to the directory server <b>status</b> to upload or
- * download a service or rendezvous descriptor. <b>purpose</b> determines what
+ * download a server or rendezvous descriptor. <b>purpose</b> determines what
* kind of directory connection we're launching, and must be one of
* DIR_PURPOSE_{FETCH|UPLOAD}_{DIR|RENDDESC}.
*