diff options
author | Roger Dingledine <arma@torproject.org> | 2007-07-30 08:42:47 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-07-30 08:42:47 +0000 |
commit | 1b01ad6d38a8b0cc1cf9c47d37f0b70b46b45dcb (patch) | |
tree | 1bb22633f9dfc9d4633518d06db0d28fdc50f9f6 /src | |
parent | c7901354fbbedb3ac573b7d2e4cf5b0a996b09a8 (diff) | |
download | tor-1b01ad6d38a8b0cc1cf9c47d37f0b70b46b45dcb.tar tor-1b01ad6d38a8b0cc1cf9c47d37f0b70b46b45dcb.tar.gz |
writing instructions before you release means you can make sure
your instructions don't seg fault
svn:r10984
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 0f6f8e0c9..a010abbd9 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2383,6 +2383,8 @@ parse_authority_type_from_list(smartlist_t *list, authority_type_t *auth, { tor_assert(auth); *auth = NO_AUTHORITY; + if (!list) /* empty list, answer is none */ + return 0; SMARTLIST_FOREACH(list, const char *, string, { if (!strcasecmp(string, "v1")) *auth |= V1_AUTHORITY; |