[or-cvs] r10984: writing instructions before you release means you can make s (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Mon Jul 30 08:42:48 UTC 2007
Author: arma
Date: 2007-07-30 04:42:47 -0400 (Mon, 30 Jul 2007)
New Revision: 10984
Modified:
tor/trunk/src/or/config.c
Log:
writing instructions before you release means you can make sure
your instructions don't seg fault
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2007-07-30 06:18:56 UTC (rev 10983)
+++ tor/trunk/src/or/config.c 2007-07-30 08:42:47 UTC (rev 10984)
@@ -2383,6 +2383,8 @@
{
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;
More information about the tor-commits
mailing list