Browse Source

writing instructions before you release means you can make sure
your instructions don't seg fault


svn:r10984

Roger Dingledine 17 years ago
parent
commit
1b01ad6d38
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/config.c

+ 2 - 0
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;