summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 02b3477eaf..262eeeb153 100644
--- a/src/or/config.c
+++ b/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,