writing instructions before you release means you can make sure

your instructions don't seg fault


svn:r10984
This commit is contained in:
Roger Dingledine 2007-07-30 08:42:47 +00:00
parent c7901354fb
commit 1b01ad6d38

View 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;