aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_exit.c
diff options
context:
space:
mode:
authorMatej Pjafjar <badbytes@freehaven.net>2002-07-10 12:37:37 +0000
committerMatej Pjafjar <badbytes@freehaven.net>2002-07-10 12:37:37 +0000
commitbb01f59de9f38577a80cd14f8f83107999bca506 (patch)
treee0c3bad1833fbf26c501a60e5ed7b1e9bdd306b4 /src/or/connection_exit.c
parentf07ade30466ffaedef9d0fb50bd2c6084b9e0ed4 (diff)
downloadtor-bb01f59de9f38577a80cd14f8f83107999bca506.tar
tor-bb01f59de9f38577a80cd14f8f83107999bca506.tar.gz
Bugfix : connection_exit_process_data_cell() quit after receiving the SS, without waiting for the destination addr/port
svn:r35
Diffstat (limited to 'src/or/connection_exit.c')
-rw-r--r--src/or/connection_exit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection_exit.c b/src/or/connection_exit.c
index 13c5f55fd..861c62ddb 100644
--- a/src/or/connection_exit.c
+++ b/src/or/connection_exit.c
@@ -151,8 +151,10 @@ int connection_exit_process_data_cell(cell_t *cell, connection_t *conn) {
connection_watch_events(conn, POLLIN);
return 0;
}
- log(LOG_DEBUG,"connection_exit_process_cell(): in connecting_wait, but I've already received everything. Closing.");
- return -1;
+ else {
+ log(LOG_DEBUG,"connection_exit_process_cell(): in connecting_wait, but I've already received everything. Closing.");
+ return -1;
+ }
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);