[or-cvs] Do not segfault on missing intro points.

Nick Mathewson nickm at seul.org
Wed Apr 14 04:19:15 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv18122/src/or

Modified Files:
	rendservice.c 
Log Message:
Do not segfault on missing intro points.

Index: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendservice.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- rendservice.c	13 Apr 2004 17:20:41 -0000	1.50
+++ rendservice.c	14 Apr 2004 04:19:12 -0000	1.51
@@ -251,7 +251,7 @@
   for (i=0; i < n; ++i) {
     router = router_get_by_nickname(smartlist_get(service->intro_nodes, i));
     circ = find_intro_circuit(router, service->pk_digest);
-    if (circ->purpose == CIRCUIT_PURPOSE_S_INTRO) {
+    if (circ && circ->purpose == CIRCUIT_PURPOSE_S_INTRO) {
       /* We have an entirely established intro circuit. */
       d->intro_points[d->n_intro_points++] = tor_strdup(router->nickname);
     }



More information about the tor-commits mailing list