mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
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:
parent
35b78b2d8e
commit
047e105daf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user