From dc6d7f072d7307c21df80b982c1d1f98130d3286 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 23 Oct 2019 15:38:15 -0400 Subject: 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. --- src/lib/confmgt/confparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/confmgt') 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); -- cgit v1.2.3-54-g00ecf