mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
Bugfix : connection_exit_process_data_cell() quit after receiving the SS, without waiting for the destination addr/port
svn:r35
This commit is contained in:
parent
f07ade3046
commit
bb01f59de9
1 changed files with 4 additions and 2 deletions
|
@ -151,8 +151,10 @@ int connection_exit_process_data_cell(cell_t *cell, connection_t *conn) {
|
||||||
connection_watch_events(conn, POLLIN);
|
connection_watch_events(conn, POLLIN);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
log(LOG_DEBUG,"connection_exit_process_cell(): in connecting_wait, but I've already received everything. Closing.");
|
log(LOG_DEBUG,"connection_exit_process_cell(): in connecting_wait, but I've already received everything. Closing.");
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
case EXIT_CONN_STATE_CONNECTING:
|
case EXIT_CONN_STATE_CONNECTING:
|
||||||
log(LOG_DEBUG,"connection_exit_process_cell(): Data receiving while connecting. Queueing.");
|
log(LOG_DEBUG,"connection_exit_process_cell(): Data receiving while connecting. Queueing.");
|
||||||
retval = connection_write_to_buf(cell->payload, cell->length, conn);
|
retval = connection_write_to_buf(cell->payload, cell->length, conn);
|
||||||
|
|
Loading…
Add table
Reference in a new issue