]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
writing instructions before you release means you can make sure
authorRoger Dingledine <arma@torproject.org>
Mon, 30 Jul 2007 08:42:47 +0000 (08:42 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 30 Jul 2007 08:42:47 +0000 (08:42 +0000)
your instructions don't seg fault

svn:r10984

src/or/config.c

index 0f6f8e0c911035bac6ed3b8bad202897ea993f66..a010abbd9728631a333e625f6a1a73f947d61c1c 100644 (file)
@@ -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;