[or-cvs] start hunting the lucky-bug

Roger Dingledine arma at seul.org
Sun Feb 22 20:50:22 UTC 2004


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

Modified Files:
	dns.c 
Log Message:
start hunting the lucky-bug


Index: dns.c
===================================================================
RCS file: /home/or/cvsroot/src/or/dns.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- dns.c	10 Jan 2004 23:40:38 -0000	1.48
+++ dns.c	22 Feb 2004 20:50:20 -0000	1.49
@@ -336,8 +336,12 @@
     if(resolve->state == CACHE_STATE_FAILED) {
       if(connection_edge_end(pend->conn, END_STREAM_REASON_RESOLVEFAILED, NULL) < 0)
         log_fn(LOG_WARN,"1: I called connection_edge_end redundantly.");
-    } else
+    } else {
+      /* XXX should call assert_connection_ok here */
+      assert(pend->conn->type >= _CONN_TYPE_MIN);
+      assert(pend->conn->type <= _CONN_TYPE_MAX);
       connection_exit_connect(pend->conn);
+    }
     resolve->pending_connections = pend->next;
     free(pend);
   }



More information about the tor-commits mailing list