summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-05 00:39:01 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-05 00:39:01 -0400
commit99062c4003ad9ec35fe84842f692047cc12477df (patch)
treeb134a78462752e50913f23f19909ec1ce80be07c /src/or/directory.c
parent4080d9b0fa9dd4cab903599d6f7f3ed0785e2420 (diff)
downloadtor-99062c4003ad9ec35fe84842f692047cc12477df.tar.gz
tor-99062c4003ad9ec35fe84842f692047cc12477df.zip
Spotted another missing check
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 27de0aecdf..9362a27b26 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -222,7 +222,7 @@ router_supports_extrainfo(const char *identity_digest, int is_authority)
{
const node_t *node = node_get_by_id(identity_digest);
- if (node->ri) {
+ if (node && node->ri) {
if (node->ri->caches_extra_info)
return 1;
if (is_authority && node->ri->platform &&