Ver código fonte

it wouldn't return when the next router isn't up, leading to later seg fault

i'm going to take a shower, and then solve the deadlocking problem mat found


svn:r38
Roger Dingledine 23 anos atrás
pai
commit
391d23c428
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/or/command.c

+ 1 - 0
src/or/command.c

@@ -101,6 +101,7 @@ void command_process_create_cell(cell_t *cell, connection_t *conn) {
        */
       log(LOG_DEBUG,"command_process_create_cell(): Next router not connected. Closing.");
       circuit_close(circ);
+      return;
     }
     circ->n_conn = n_conn;
     log(LOG_DEBUG,"command_process_create_cell(): n_conn is %s:%u",n_conn->address,ntohs(n_conn->port));