[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix an assert trigger where an OP would fail to handshake, ...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] fix an assert trigger where an OP would fail to handshake, ...
- From: arma@seul.org (Roger Dingledine)
- Date: Fri, 26 Mar 2004 20:28:17 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 26 Mar 2004 20:28:32 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
connection.c
Log Message:
fix an assert trigger where an OP would fail to handshake, and we'd
expect it to have a nickname.
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -d -r1.185 -r1.186
--- connection.c 26 Mar 2004 18:29:05 -0000 1.185
+++ connection.c 27 Mar 2004 01:28:14 -0000 1.186
@@ -187,7 +187,11 @@
case CONN_TYPE_OR:
/* Remember why we're closing this connection. */
if (conn->state != OR_CONN_STATE_OPEN) {
- rep_hist_note_connect_failed(conn->nickname, time(NULL));
+ /* XXX Nick: this still isn't right, because it might be
+ * dying even though we didn't initiate the connect. Can
+ * you look at this more? -RD */
+ if(conn->nickname)
+ rep_hist_note_connect_failed(conn->nickname, time(NULL));
} else if (reason == CLOSE_REASON_UNUSED_OR_CONN) {
rep_hist_note_disconnect(conn->nickname, time(NULL));
} else {