aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_exit.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-07-10 18:39:33 +0000
committerRoger Dingledine <arma@torproject.org>2002-07-10 18:39:33 +0000
commitdb15776bdd1870237406c6e5077b175b17a9eafb (patch)
tree40cc1106ecf3f0600275f6d5be08b27175a89959 /src/or/connection_exit.c
parent6a58057a6e19a252cb168f7cfe0e775bcb22aa21 (diff)
downloadtor-db15776bdd1870237406c6e5077b175b17a9eafb.tar
tor-db15776bdd1870237406c6e5077b175b17a9eafb.tar.gz
a patch for mat's patch
svn:r37
Diffstat (limited to 'src/or/connection_exit.c')
-rw-r--r--src/or/connection_exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_exit.c b/src/or/connection_exit.c
index 861c62ddb..2904343e0 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);