summaryrefslogtreecommitdiff
path: root/src/test/test_config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-09 08:18:41 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-09 08:19:26 -0400
commitb8abedfeeee3e8d15d952578abb102fbcc56ea04 (patch)
treef033b9aa051d281019215ef0498325371c50de5a /src/test/test_config.c
parentfa04fe1674bfc786785c88fb3f49e8b8a8e0b9e5 (diff)
downloadtor-b8abedfeeee3e8d15d952578abb102fbcc56ea04.tar.gz
tor-b8abedfeeee3e8d15d952578abb102fbcc56ea04.zip
Split MyFamily into user-specified version and normalized version
This change prevents a no-longer-supported behavior where we change options that would later be written back to torrc with a SAVECONF. Also, use the "Pointer to final pointer" trick to build the normalized list, to avoid special-casing the first element.
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r--src/test/test_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c
index ccada94260..8dc9fb032e 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -878,7 +878,7 @@ test_config_fix_my_family(void *arg)
options_init(options);
options_init(defaults);
- options->MyFamily = family;
+ options->MyFamily_lines = family;
options_validate(NULL, options, defaults, 0, &err) ;