From: Robert Ransom Date: Wed, 23 Nov 2011 22:10:46 +0000 (-0800) Subject: Add ifdefs to disable assertion in connection_ap_handshake_send_begin X-Git-Tag: tor-0.2.3.9-alpha~26^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=328c9582a90f65c5f21d05f2de889bc2286dc0ff;p=thirdparty%2Ftor.git Add ifdefs to disable assertion in connection_ap_handshake_send_begin --- diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index bba666d3b9..dc15721b6c 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -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,