aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-07-30 08:42:47 +0000
committerRoger Dingledine <arma@torproject.org>2007-07-30 08:42:47 +0000
commit1b01ad6d38a8b0cc1cf9c47d37f0b70b46b45dcb (patch)
tree1bb22633f9dfc9d4633518d06db0d28fdc50f9f6 /src
parentc7901354fbbedb3ac573b7d2e4cf5b0a996b09a8 (diff)
downloadtor-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.c2
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;