[or-cvs] more asserts in case weasel can trigger them

arma at seul.org arma at seul.org
Mon Dec 19 00:35:20 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	rendclient.c 
Log Message:
more asserts in case weasel can trigger them


Index: rendclient.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/rendclient.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -p -d -r1.100 -r1.101
--- rendclient.c	14 Dec 2005 20:40:40 -0000	1.100
+++ rendclient.c	19 Dec 2005 00:35:18 -0000	1.101
@@ -426,6 +426,7 @@ rend_client_desc_here(const char *query)
 
   while ((conn = connection_get_by_type_state_rendquery(CONN_TYPE_AP,
                                  AP_CONN_STATE_RENDDESC_WAIT, query))) {
+    assert_connection_ok(conn, now);
     if (rend_cache_lookup_entry(conn->rend_query, -1, &entry) == 1 &&
         entry->parsed->n_intro_points > 0) {
       /* either this fetch worked, or it failed but there was a



More information about the tor-commits mailing list