]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Bugfix : connection_exit_process_data_cell() quit after receiving the SS, without...
authorMatej Pjafjar <badbytes@freehaven.net>
Wed, 10 Jul 2002 12:37:37 +0000 (12:37 +0000)
committerMatej Pjafjar <badbytes@freehaven.net>
Wed, 10 Jul 2002 12:37:37 +0000 (12:37 +0000)
svn:r35

src/or/connection_exit.c

index 13c5f55fd11f3fc263e70a945fbe19097bfeb419..861c62ddb561671d1c53500fc073e7f5ec4cc56b 100644 (file)
@@ -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);