[or-cvs] r10334: i suspect we would trigger asserts if we answer a cached res (tor/trunk/src/or)

arma at seul.org arma at seul.org
Fri May 25 19:30:07 UTC 2007


Author: arma
Date: 2007-05-25 15:30:07 -0400 (Fri, 25 May 2007)
New Revision: 10334

Modified:
   tor/trunk/src/or/dns.c
Log:
i suspect we would trigger asserts if we answer a cached
resolve request. this should help that.


Modified: tor/trunk/src/or/dns.c
===================================================================
--- tor/trunk/src/or/dns.c	2007-05-25 19:22:26 UTC (rev 10333)
+++ tor/trunk/src/or/dns.c	2007-05-25 19:30:07 UTC (rev 10334)
@@ -541,6 +541,7 @@
           send_resolved_hostname_cell(exitconn, hostname);
         else
           send_resolved_cell(exitconn, RESOLVED_TYPE_IPV4);
+        exitconn->on_circuit = NULL;
       } else {
         exitconn->next_stream = oncirc->n_streams;
         oncirc->n_streams = exitconn;



More information about the tor-commits mailing list