aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-07-27 04:10:51 +0000
committerNick Mathewson <nickm@torproject.org>2006-07-27 04:10:51 +0000
commitdd779d99ea041789a58d921cc8b1b86cbc49cceb (patch)
tree901c66e74a4bcca6d976325aea060b12e6d5f5f3 /src/or/connection.c
parentf77b2a0407b8c312194c2c708c23ca0b32eabf8f (diff)
downloadtor-dd779d99ea041789a58d921cc8b1b86cbc49cceb.tar.gz
tor-dd779d99ea041789a58d921cc8b1b86cbc49cceb.zip
Fix comments that implied that only dir connections had a purpose field, and the code that believed in those comments.
svn:r6918
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 6528e2b4f2..48ceb2623d 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -2235,9 +2235,9 @@ assert_connection_ok(connection_t *conn, time_t now)
tor_assert(conn->purpose == EXIT_PURPOSE_CONNECT ||
conn->purpose == EXIT_PURPOSE_RESOLVE);
}
- }
- if (conn->type != CONN_TYPE_DIR) {
- tor_assert(!conn->purpose); /* only used for dir types currently */
+ } else if (conn->type != CONN_TYPE_DIR) {
+ /* Purpose is only used for dir and exit types currently */
+ tor_assert(!conn->purpose);
}
switch (conn->type)