[or-cvs] only call the connection open once we"ve decided we like th...
Roger Dingledine
arma at seul.org
Mon Apr 25 17:23:54 UTC 2005
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;
More information about the tor-commits
mailing list