ソースを参照

Merge branch 'bug3743'

Nick Mathewson 13 年 前
コミット
14552a12b3
1 ファイル変更8 行追加4 行削除
  1. 8 4
      src/or/config.c

+ 8 - 4
src/or/config.c

@@ -718,10 +718,14 @@ set_options(or_options_t *new_val, char **msg)
   if (old_options) {
     elements = smartlist_create();
     for (i=0; options_format.vars[i].name; ++i) {
-      if (!option_is_same(&options_format, new_val, old_options,
-        options_format.vars[i].name)) {
-        line = get_assigned_option(&options_format, new_val,
-        options_format.vars[i].name, 1);
+      const config_var_t *var = &options_format.vars[i];
+      const char *var_name = var->name;
+      if (var->type == CONFIG_TYPE_LINELIST_S ||
+          var->type == CONFIG_TYPE_OBSOLETE) {
+        continue;
+      }
+      if (!option_is_same(&options_format, new_val, old_options, var_name)) {
+        line = get_assigned_option(&options_format, new_val, var_name, 1);
 
         if (line) {
           for (; line; line = line->next) {