diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-14 04:19:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-14 04:19:12 +0000 |
commit | ddd45a7c0a9651be81b67e812d8a63ffd2164ea0 (patch) | |
tree | eafb5f4dc13a03a74a1a89ab3b0308f6769cf091 /src/or | |
parent | f07d880f3841dcf031a9d9eb350643121e214bef (diff) | |
download | tor-ddd45a7c0a9651be81b67e812d8a63ffd2164ea0.tar tor-ddd45a7c0a9651be81b67e812d8a63ffd2164ea0.tar.gz |
Do not segfault on missing intro points.
svn:r1616
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/rendservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 289e2bf07..e7f787e4c 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -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); } |