aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index cccf4bfdf..cef5be524 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -704,8 +704,9 @@ options_act(or_options_t *old_options)
}
/* Check if we need to parse and add the EntryNodes config option. */
- if (!old_options ||
- !opt_streq(old_options->EntryNodes, options->EntryNodes))
+ if (options->EntryNodes &&
+ (!old_options ||
+ !opt_streq(old_options->EntryNodes, options->EntryNodes)))
entry_nodes_should_be_added();
/* Since our options changed, we might need to regenerate and upload our