summaryrefslogtreecommitdiff
path: root/src/app/config/statefile.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-07-23 11:32:52 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-28 09:40:53 -0400
commit38b770bbbb37aef6cd3cef5fd6f425cd951affe2 (patch)
tree65a613a67a7f9baf09c4f8cdcbe1e7efb8b613bb /src/app/config/statefile.c
parent47654d32497acae23aafbe3316ae73d3c00429c8 (diff)
downloadtor-38b770bbbb37aef6cd3cef5fd6f425cd951affe2.tar.gz
tor-38b770bbbb37aef6cd3cef5fd6f425cd951affe2.zip
Make a config_suite_t type to hold multiple config sub-objects
Right now, it doesn't do anything; this patch is meant to make sure that we're doing memory management correctly.
Diffstat (limited to 'src/app/config/statefile.c')
-rw-r--r--src/app/config/statefile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/config/statefile.c b/src/app/config/statefile.c
index ede35e6ced..bcc06809b3 100644
--- a/src/app/config/statefile.c
+++ b/src/app/config/statefile.c
@@ -170,6 +170,7 @@ static const config_format_t state_format = {
or_state_validate_cb,
NULL,
&state_extra_var,
+ offsetof(or_state_t, substates_),
};
/* A global configuration manager for state-file objects */