aboutsummaryrefslogtreecommitdiff
path: root/src/lib/confmgt
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-23 15:38:15 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-24 20:30:32 -0400
commitdc6d7f072d7307c21df80b982c1d1f98130d3286 (patch)
tree93298a500138ab9c332c0fb16492188205241bcc /src/lib/confmgt
parent0cb42385378d539185a20ce8899cdc16cf46145c (diff)
downloadtor-dc6d7f072d7307c21df80b982c1d1f98130d3286.tar.gz
tor-dc6d7f072d7307c21df80b982c1d1f98130d3286.zip
Make foo_validate() functions call config_validate().
The former foo_validate() functions are now toplevel legacy_validate_fn callbacks. The new foo_validate() functions now call them. This change lets us remove the old shared_random disk state validation callback entirely.
Diffstat (limited to 'src/lib/confmgt')
-rw-r--r--src/lib/confmgt/confparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/confmgt/confparse.c b/src/lib/confmgt/confparse.c
index 6d272ed044..f1bec76c0e 100644
--- a/src/lib/confmgt/confparse.c
+++ b/src/lib/confmgt/confparse.c
@@ -1239,7 +1239,7 @@ config_dump(const config_mgr_t *mgr, const void *default_options,
/* XXX use a 1 here so we don't add a new log line while dumping */
if (default_options == NULL) {
- if (fmt->legacy_validate_fn(NULL, defaults_tmp, &msg) < 0) {
+ if (config_validate(mgr, NULL, defaults_tmp, &msg) < 0) {
// LCOV_EXCL_START
log_err(LD_BUG, "Failed to validate default config: %s", msg);
tor_free(msg);