소스 검색

when the or-connect succeeded and the tls handshake succeeded
but we didn't like the result, we were closing the connection
without sending any destroys back for the pending circuits. now
send those destroys anyway; i hope this doesn't break too much.


svn:r3951

Roger Dingledine 20 년 전
부모
커밋
cd25e56ad2
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/or/circuituse.c

+ 2 - 4
src/or/circuituse.c

@@ -479,10 +479,8 @@ void circuit_about_to_close_connection(connection_t *conn) {
 
   switch (conn->type) {
     case CONN_TYPE_OR:
-      if (conn->state != OR_CONN_STATE_OPEN) {
-        /* Inform any pending (not attached) circs that they should give up. */
-        circuit_n_conn_done(conn, 0);
-      }
+      /* Inform any pending (not attached) circs that they should give up. */
+      circuit_n_conn_done(conn, 0);
       /* Now close all the attached circuits on it. */
       while ((circ = circuit_get_by_conn(conn))) {
         if (circ->n_conn == conn) /* it's closing in front of us */