[or-cvs] ok, ok, csv"s get replaced even when we assign them from th...

arma at seul.org arma at seul.org
Wed Sep 14 02:12:31 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	config.c 
Log Message:
ok, ok, csv's get replaced even when we assign them from the torrc.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.415
retrieving revision 1.416
diff -u -d -r1.415 -r1.416
--- config.c	14 Sep 2005 02:07:35 -0000	1.415
+++ config.c	14 Sep 2005 02:12:29 -0000	1.416
@@ -834,9 +834,9 @@
 
   case CONFIG_TYPE_CSV:
     if (!*(smartlist_t**)lvalue) {
-//      SMARTLIST_FOREACH(*(smartlist_t**)lvalue, char *, cp, tor_free(cp));
-//      smartlist_clear(*(smartlist_t**)lvalue);
-//    } else {
+      SMARTLIST_FOREACH(*(smartlist_t**)lvalue, char *, cp, tor_free(cp));
+      smartlist_clear(*(smartlist_t**)lvalue);
+    } else {
       *(smartlist_t**)lvalue = smartlist_create();
     }
 
@@ -1057,7 +1057,8 @@
  * clearing, or make the value 0 or NULL.
  *
  * Here are the use cases:
- * 1. A non-empty AllowUnverified line in your torrc. Appends to current.
+ * 1. A non-empty AllowUnverified line in your torrc. Appends to current
+ *    if linelist, replaces current if csv.
  * 2. An empty AllowUnverified line in your torrc. Should clear it.
  * 3. "RESETCONF AllowUnverified" sets it to default.
  * 4. "SETCONF AllowUnverified" makes it NULL.



More information about the tor-commits mailing list