[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] only call the connection open once we"ve decided we like th...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] only call the connection open once we"ve decided we like th...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Mon, 25 Apr 2005 13:23:54 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 25 Apr 2005 13:24:18 -0400
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
connection_or.c
Log Message:
only call the connection open once we've decided we like the cert.
Index: connection_or.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_or.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- connection_or.c 23 Apr 2005 14:26:02 -0000 1.169
+++ connection_or.c 25 Apr 2005 17:23:52 -0000 1.170
@@ -440,8 +440,6 @@
int severity = (authdir_mode(options) || !server_mode(options))
? LOG_WARN : LOG_INFO;
- conn->state = OR_CONN_STATE_OPEN;
- connection_watch_events(conn, EV_READ);
log_fn(LOG_DEBUG,"tls handshake done. verifying.");
check_no_tls_errors();
if (! tor_tls_peer_has_cert(conn->tls)) {
@@ -542,8 +540,9 @@
}
directory_set_dirty();
+ conn->state = OR_CONN_STATE_OPEN;
+ connection_watch_events(conn, EV_READ);
circuit_n_conn_done(conn, 1); /* send the pending creates, if any. */
- /* Note the success */
rep_hist_note_connect_succeeded(conn->identity_digest, time(NULL));
control_event_or_conn_status(conn, OR_CONN_EVENT_CONNECTED);
return 0;