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
This commit is contained in:
Nick Mathewson 2005-09-09 20:08:26 +00:00
parent 35b78b2d8e
commit 047e105daf

View File

@ -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) {