mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
make options->RedirectExit work again; resolve bug 293.
svn:r6492
This commit is contained in:
parent
8c49a46eee
commit
6066d68ac3
@ -726,11 +726,12 @@ options_act(or_options_t *old_options)
|
|||||||
smartlist_t *sl = smartlist_create();
|
smartlist_t *sl = smartlist_create();
|
||||||
char *errmsg = NULL;
|
char *errmsg = NULL;
|
||||||
for (cl = options->RedirectExit; cl; cl = cl->next) {
|
for (cl = options->RedirectExit; cl; cl = cl->next) {
|
||||||
if (parse_redirect_line(sl, cl, &errmsg)<0)
|
if (parse_redirect_line(sl, cl, &errmsg)<0) {
|
||||||
log_warn(LD_CONFIG, "%s", errmsg);
|
log_warn(LD_CONFIG, "%s", errmsg);
|
||||||
tor_free(errmsg);
|
tor_free(errmsg);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set_exit_redirects(sl);
|
set_exit_redirects(sl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user