Browse Source

Fix a bug in config_dump: we want to run options_validate on the defaults, not (again, uselessly) on the configuration. This was introduced when we made the config code more generic.

svn:r4965
Nick Mathewson 20 years ago
parent
commit
047e105daf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/config.c

+ 1 - 1
src/or/config.c

@@ -1438,7 +1438,7 @@ config_dump(config_format_t *fmt, void *options, int minimal)
 
   defaults = config_alloc(fmt);
   config_init(fmt, defaults);
-  fmt->validate_fn(options);
+  fmt->validate_fn(defaults);
 
   elements = smartlist_create();
   for (i=0; fmt->vars[i].name; ++i) {