Explorar o código

Spotted another missing check

Nick Mathewson %!s(int64=15) %!d(string=hai) anos
pai
achega
99062c4003
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/directory.c

+ 1 - 1
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);
   const node_t *node = node_get_by_id(identity_digest);
 
 
-  if (node->ri) {
+  if (node && node->ri) {
     if (node->ri->caches_extra_info)
     if (node->ri->caches_extra_info)
       return 1;
       return 1;
     if (is_authority && node->ri->platform &&
     if (is_authority && node->ri->platform &&