mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix crash with %include
Fixes crash when including a folder that contains a non-empty file without any values followed by any other non-empty file.
This commit is contained in:
parent
6fcaf83c98
commit
f8ccf8d9a9
@ -300,6 +300,7 @@ config_process_include(const char *path, int recursion_level, int extended,
|
|||||||
tor_free(config_file);
|
tor_free(config_file);
|
||||||
|
|
||||||
**next = included_list;
|
**next = included_list;
|
||||||
|
if (*list_last)
|
||||||
*next = &(*list_last)->next;
|
*next = &(*list_last)->next;
|
||||||
|
|
||||||
} SMARTLIST_FOREACH_END(config_file);
|
} SMARTLIST_FOREACH_END(config_file);
|
||||||
|
Loading…
Reference in New Issue
Block a user