Commit fcfe6d2e authored by Roger Dingledine's avatar Roger Dingledine
Browse files

fix assert: stop trying to send a socks reply to an *exit*

connection when we get an end cell before it's finished opening.


svn:r3886
parent 9e154340
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -659,6 +659,7 @@ connection_edge_process_relay_cell_not_open(
    if (CIRCUIT_IS_ORIGIN(circ))
      circuit_log_path(LOG_INFO,circ);
    conn->has_sent_end = 1; /* we just got an 'end', don't need to send one */
    if (conn->type == CONN_TYPE_AP)
      connection_ap_handshake_socks_reply(conn, NULL, 0,
        connection_edge_end_reason_socks5_response(*(char *)
          (cell->payload+RELAY_HEADER_SIZE)));