summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-09 20:08:26 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-09 20:08:26 +0000
commit047e105daf055e70db87b1c84fe35ce2058492d5 (patch)
tree87c28ea0e29aab548902eb6eb2fce8927e547b44
parent35b78b2d8eff5dd54461529d9dd97b53bb1dec1f (diff)
downloadtor-047e105daf055e70db87b1c84fe35ce2058492d5.tar.gz
tor-047e105daf055e70db87b1c84fe35ce2058492d5.zip
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
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 45e7046026..120eb236e8 100644
--- a/src/or/config.c
+++ b/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) {