summaryrefslogtreecommitdiff
path: root/src/lib/confmgt/confparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-22 13:52:40 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 13:52:40 -0400
commit697d99e50411b29eeb82667a870bd10c5efa9509 (patch)
tree46ba4cdd127232036743d04506dd51d742e2de93 /src/lib/confmgt/confparse.c
parent91413e04b458f41334ea4e25e35829043956b742 (diff)
downloadtor-697d99e50411b29eeb82667a870bd10c5efa9509.tar.gz
tor-697d99e50411b29eeb82667a870bd10c5efa9509.zip
validate_fn(): remove now-unused defaults and from_setconf.
These arguments were only used by options_validate, and are now ignored even there.
Diffstat (limited to 'src/lib/confmgt/confparse.c')
-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 08e562f654..323c88a31c 100644
--- a/src/lib/confmgt/confparse.c
+++ b/src/lib/confmgt/confparse.c
@@ -1166,7 +1166,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->validate_fn(NULL, defaults_tmp, defaults_tmp, 1, &msg) < 0) {
+ if (fmt->validate_fn(NULL, defaults_tmp, &msg) < 0) {
// LCOV_EXCL_START
log_err(LD_BUG, "Failed to validate default config: %s", msg);
tor_free(msg);