mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
fix a seg fault with exitredirect
svn:r2555
This commit is contained in:
parent
bca51ea256
commit
e66d5f897a
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue