Browse Source

Fix a segfault when starting a dir cache

svn:r4836
Nick Mathewson 20 years ago
parent
commit
4dc3cb9fd9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/dirserv.c

+ 2 - 0
src/or/dirserv.c

@@ -631,6 +631,8 @@ dirserv_log_unreachable_servers(time_t now) {
  */
 void
 dirserv_router_has_begun_reachability_testing(char *digest, time_t now) {
+  if (!descriptor_list)
+    return;
   SMARTLIST_FOREACH(descriptor_list, routerinfo_t *, ri,
   {
     if (!memcmp(ri->identity_digest, digest, DIGEST_LEN))