diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-30 09:28:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-07 07:28:43 -0500 |
commit | 7ac4f9d5ec1b31a0d4b76ab62c1afc039c8fe627 (patch) | |
tree | 865fb327567676c3c84cc25c7b2ab119f0ec837e /src/app/config/config.c | |
parent | a7cfddc8d18c39be8fb212ee2a96da2d1905d9c8 (diff) | |
download | tor-7ac4f9d5ec1b31a0d4b76ab62c1afc039c8fe627.tar.gz tor-7ac4f9d5ec1b31a0d4b76ab62c1afc039c8fe627.zip |
Give subsystems optional config formats and state formats.
The formats, when provided, are now added to the global config_mgr_t
objects.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 5f9a55ed17..7317a5d2f1 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -918,6 +918,8 @@ get_options_mgr(void) { if (PREDICT_UNLIKELY(options_mgr == NULL)) { options_mgr = config_mgr_new(&options_format); + int rv = subsystems_register_options_formats(options_mgr); + tor_assert(rv == 0); config_mgr_freeze(options_mgr); } return options_mgr; |