Commit 4ce0e018 authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

add conn->requested_resource to connection_t checks.


svn:r4951
parent a938190b
Loading
Loading
Loading
Loading
+3 −0
Changes for src/or/connection.c: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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)
    {