]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not segfault on missing intro points.
authorNick Mathewson <nickm@torproject.org>
Wed, 14 Apr 2004 04:19:12 +0000 (04:19 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Apr 2004 04:19:12 +0000 (04:19 +0000)
svn:r1616

src/or/rendservice.c

index 289e2bf079a321469f23e0ae41e6e76c1d1f1a43..e7f787e4cd80d081f6c25970dc83dc3724fdf592 100644 (file)
@@ -251,7 +251,7 @@ static void rend_service_update_descriptor(rend_service_t *service)
   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);
     }