mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
fix a seg fault with exitredirect
svn:r2555
This commit is contained in:
parent
bca51ea256
commit
e66d5f897a
@ -1094,6 +1094,7 @@ static int parse_redirect_line(or_options_t *options,
|
||||
tor_assert(line);
|
||||
|
||||
r = tor_malloc_zero(sizeof(exit_redirect_t));
|
||||
elements = smartlist_create();
|
||||
smartlist_split_string(elements, line->value, " ",
|
||||
SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
|
||||
if (smartlist_len(elements) != 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user