[or-cvs] and make sure that never happens again
arma at seul.org
arma at seul.org
Thu Feb 9 02:42:35 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
connection.c
Log Message:
and make sure that never happens again
Index: connection.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.437
retrieving revision 1.438
diff -u -p -d -r1.437 -r1.438
--- connection.c 6 Feb 2006 05:01:44 -0000 1.437
+++ connection.c 9 Feb 2006 02:42:33 -0000 1.438
@@ -2089,6 +2089,7 @@ assert_connection_ok(connection_t *conn,
case CONN_TYPE_OR:
tor_assert(conn->state >= _OR_CONN_STATE_MIN);
tor_assert(conn->state <= _OR_CONN_STATE_MAX);
+ tor_assert(conn->n_circuits >= 0);
break;
case CONN_TYPE_EXIT:
tor_assert(conn->state >= _EXIT_CONN_STATE_MIN);
More information about the tor-commits
mailing list