break;
case CONN_TYPE_AP:
if (conn->socks_request->has_finished == 0) {
- log_fn(LOG_INFO,"Cleaning up AP -- sending socks reject.");
- conn->hold_open_until_flushed = 1;
- /* XXX this socks_reply never gets sent, since conn
- * gets removed right after this function finishes. */
- connection_ap_handshake_socks_reply(conn, NULL, 0, SOCKS5_GENERAL_ERROR);
+ /* since conn gets removed right after this function finishes,
+ * there's no point trying to send back a reply at this point. */
+ log_fn(LOG_INFO,"Bug: Closing stream without sending back a socks reply.");
} else {
control_event_stream_status(conn, STREAM_EVENT_CLOSED);
}