]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add ifdefs to disable assertion in connection_ap_handshake_send_begin
authorRobert Ransom <rransom.8774@gmail.com>
Wed, 23 Nov 2011 22:10:46 +0000 (14:10 -0800)
committerNick Mathewson <nickm@torproject.org>
Wed, 30 Nov 2011 19:54:15 +0000 (14:54 -0500)
src/or/connection_edge.c

index bba666d3b93acb30238cad71f123efb736101482..dc15721b6ce0de48ce4471e7264fbe590990fbb1 100644 (file)
@@ -2461,7 +2461,9 @@ connection_ap_handshake_send_begin(entry_connection_t *ap_conn)
   begin_type = ap_conn->use_begindir ?
                  RELAY_COMMAND_BEGIN_DIR : RELAY_COMMAND_BEGIN;
   if (begin_type == RELAY_COMMAND_BEGIN) {
+#ifndef NON_ANONYMOUS_MODE_ENABLED
     tor_assert(circ->build_state->onehop_tunnel == 0);
+#endif
   }
 
   if (connection_edge_send_command(edge_conn, begin_type,