aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
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 6528e2b4f..48ceb2623 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)