diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-09-02 11:02:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-09-02 11:02:00 -0400 |
commit | bc64a6b2b9c1e0851ce4fc4fe410ac565f3c0137 (patch) | |
tree | b5d1b5983e350080fd2f56d1c777bee32dad6ce1 | |
parent | 07b3028db74af246ca98c2d3a86d5efde9aa33c2 (diff) | |
download | tor-bc64a6b2b9c1e0851ce4fc4fe410ac565f3c0137.tar.gz tor-bc64a6b2b9c1e0851ce4fc4fe410ac565f3c0137.zip |
Fix crashes in tests
-rw-r--r-- | src/or/config.c | 3 |
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, |