[or-cvs] [tor/master 13/15] Spotted another missing check

nickm at torproject.org nickm at torproject.org
Wed Oct 13 19:59:51 UTC 2010


Author: Nick Mathewson <nickm at torproject.org>
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




More information about the tor-commits mailing list