Browse Source

Fix crashes in tests

Nick Mathewson 8 years ago
parent
commit
bc64a6b2b9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/or/config.c

+ 2 - 1
src/or/config.c

@@ -3173,7 +3173,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
              "http://freehaven.net/anonbib/#hs-attack06 for details.");
   }
 
-  if (routerset_is_list(options->EntryNodes) &&
+  if (options->EntryNodes &&
+      routerset_is_list(options->EntryNodes) &&
       (routerset_len(options->EntryNodes) == 1) &&
       (options->RendConfigLines != NULL)) {
     tor_asprintf(msg,