[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/master 13/15] Spotted another missing check
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue, 5 Oct 2010 00:39:01 -0400
Subject: Spotted another missing check
Commit: 99062c4003ad9ec35fe84842f692047cc12477df
---
src/or/directory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/directory.c b/src/or/directory.c
index 27de0ae..9362a27 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 &&
--
1.7.1