[or-cvs] fix another rare bug: when we had tried all the intro

Roger Dingledine arma at seul.org
Fri Apr 16 14:35:30 UTC 2004


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

Modified Files:
	rendclient.c 
Log Message:
fix another rare bug: when we had tried all the intro
points for a hidden service, we fetched the descriptor
again, but we left our introcirc thinking it had already
sent an intro, so it kept waiting for a response...


Index: rendclient.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendclient.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- rendclient.c	16 Apr 2004 11:48:03 -0000	1.41
+++ rendclient.c	16 Apr 2004 14:35:28 -0000	1.42
@@ -229,7 +229,8 @@
     }
     /* Either we have no service desc, or all the intro points in that
      * descriptor failed. So re-fetch the descriptor and try again. */
-    /* XXXX What do we do to this circ in the meantime? */
+    circ->purpose = CIRCUIT_PURPOSE_C_INTRODUCING;
+    /* XXX anything else we need to do to circ? */
     /* Refetch descriptor */
     if(!connection_get_by_type_rendquery(CONN_TYPE_DIR, circ->rend_query)) {
       /* not one already; initiate a dir rend desc lookup */



More information about the tor-commits mailing list