From: Roger Dingledine Date: Wed, 10 Jul 2002 18:39:33 +0000 (+0000) Subject: a patch for mat's patch X-Git-Tag: tor-0.0.2pre8~431 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db15776bdd1870237406c6e5077b175b17a9eafb;p=thirdparty%2Ftor.git a patch for mat's patch svn:r37 --- diff --git a/src/or/connection_exit.c b/src/or/connection_exit.c index 861c62ddb5..2904343e07 100644 --- a/src/or/connection_exit.c +++ b/src/or/connection_exit.c @@ -150,11 +150,11 @@ int connection_exit_process_data_cell(cell_t *cell, connection_t *conn) { conn->state = EXIT_CONN_STATE_OPEN; connection_watch_events(conn, POLLIN); return 0; - } - else { + } else { log(LOG_DEBUG,"connection_exit_process_cell(): in connecting_wait, but I've already received everything. Closing."); return -1; } + return 0; case EXIT_CONN_STATE_CONNECTING: log(LOG_DEBUG,"connection_exit_process_cell(): Data receiving while connecting. Queueing."); retval = connection_write_to_buf(cell->payload, cell->length, conn);