Browse Source

add conn->requested_resource to connection_t checks.

svn:r4951
Nick Mathewson 20 years ago
parent
commit
4ce0e01848
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/connection.c

+ 3 - 0
src/or/connection.c

@@ -1952,6 +1952,9 @@ assert_connection_ok(connection_t *conn, time_t now)
   } else if (conn->type != CONN_TYPE_DIR) {
   } else if (conn->type != CONN_TYPE_DIR) {
     tor_assert(!conn->purpose); /* only used for dir types currently */
     tor_assert(!conn->purpose); /* only used for dir types currently */
   }
   }
+  if (conn->type != CONN_TYPE_DIR) {
+    tor_assert(!conn->requested_resource);
+  }
 
 
   switch (conn->type)
   switch (conn->type)
     {
     {