[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix a bug in config_dump: we want to run options_validate o...
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv21166/src/or
Modified Files:
config.c
Log Message:
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.
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.410
retrieving revision 1.411
diff -u -d -r1.410 -r1.411
--- config.c 8 Sep 2005 21:36:27 -0000 1.410
+++ config.c 9 Sep 2005 20:08:26 -0000 1.411
@@ -1438,7 +1438,7 @@
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) {