aboutsummaryrefslogtreecommitdiff
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
parentc7901354fbbedb3ac573b7d2e4cf5b0a996b09a8 (diff)
downloadtor-1b01ad6d38a8b0cc1cf9c47d37f0b70b46b45dcb.tar.gz
tor-1b01ad6d38a8b0cc1cf9c47d37f0b70b46b45dcb.zip
writing instructions before you release means you can make sure
your instructions don't seg fault svn:r10984
-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 0f6f8e0c91..a010abbd97 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;