]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix crashes in tests
authorNick Mathewson <nickm@torproject.org>
Wed, 2 Sep 2015 15:02:00 +0000 (11:02 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 2 Sep 2015 15:02:00 +0000 (11:02 -0400)
src/or/config.c

index 02b3477eaf1ca4e519da182035a70f670ee39e0c..262eeeb153875e0902dc85ae0ee9bee206248468 100644 (file)
@@ -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,