]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
it wouldn't return when the next router isn't up, leading to later seg fault
authorRoger Dingledine <arma@torproject.org>
Wed, 10 Jul 2002 19:05:13 +0000 (19:05 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 10 Jul 2002 19:05:13 +0000 (19:05 +0000)
i'm going to take a shower, and then solve the deadlocking problem mat found

svn:r38

src/or/command.c

index dfe8edbaa35e74185cd3744d14137aa2d329af68..3c2ee971651a3752262bab66caa2819d9a7c0033 100644 (file)
@@ -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));