diff options
author | teor <teor@torproject.org> | 2019-09-24 11:07:38 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-09-24 11:07:38 +1000 |
commit | 876b3e277555cff8e51102ef62d6133f9e4677ac (patch) | |
tree | 3ba730d14dd0907028920a26ebc404380fb923e9 /src/lib/fs | |
parent | e1429d91480ee16ebe32be35263a4695e1795ff9 (diff) | |
parent | 0614f839054a52e6e1a79a366fcc70da0691df66 (diff) | |
download | tor-876b3e277555cff8e51102ef62d6133f9e4677ac.tar.gz tor-876b3e277555cff8e51102ef62d6133f9e4677ac.zip |
Merge branch 'bug31408_035' into bug31408_master
Diffstat (limited to 'src/lib/fs')
-rw-r--r-- | src/lib/fs/conffile.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/fs/conffile.c b/src/lib/fs/conffile.c index 7bb2f23931..0d5d56b335 100644 --- a/src/lib/fs/conffile.c +++ b/src/lib/fs/conffile.c @@ -153,16 +153,18 @@ config_process_include(const char *path, int recursion_level, int extended, int rv = -1; SMARTLIST_FOREACH_BEGIN(config_files, const char *, config_file) { config_line_t *included_config = NULL; + config_line_t *included_config_last = NULL; if (config_get_included_config(config_file, recursion_level, extended, - &included_config, list_last, + &included_config, &included_config_last, opened_lst) < 0) { goto done; } *next = included_config; - if (*list_last) - next = &(*list_last)->next; - + if (included_config_last) { + next = &included_config_last->next; + *list_last = included_config_last; + } } SMARTLIST_FOREACH_END(config_file); *list = ret_list; rv = 0; |