diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-08 21:21:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-08 21:21:54 +0000 |
commit | 4ce0e018481817343d6824a0208e440ff1193a75 (patch) | |
tree | 80d6d8b296c666a1a267a9ee1aba87934cc19013 | |
parent | a938190bdb3993df69cf578cc631bf074eb4280b (diff) | |
download | tor-4ce0e018481817343d6824a0208e440ff1193a75.tar.gz tor-4ce0e018481817343d6824a0208e440ff1193a75.zip |
add conn->requested_resource to connection_t checks.
svn:r4951
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 3b8c0347fd..a5a4fb45b5 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1952,6 +1952,9 @@ assert_connection_ok(connection_t *conn, time_t now) } else if (conn->type != CONN_TYPE_DIR) { tor_assert(!conn->purpose); /* only used for dir types currently */ } + if (conn->type != CONN_TYPE_DIR) { + tor_assert(!conn->requested_resource); + } switch (conn->type) { |