aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-05-24 11:13:03 +0000
committerRoger Dingledine <arma@torproject.org>2006-05-24 11:13:03 +0000
commit6066d68ac3a340e2a19a28de1ac17fbe15f535ab (patch)
tree0d39396608c4c3a32d1418c1fd68a72f8f26113d
parent8c49a46eee5fcbbe3cef3cfaa07976e0cf4d8a7e (diff)
downloadtor-6066d68ac3a340e2a19a28de1ac17fbe15f535ab.tar
tor-6066d68ac3a340e2a19a28de1ac17fbe15f535ab.tar.gz
make options->RedirectExit work again; resolve bug 293.
svn:r6492
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 77ebe0ad8..73d2d85aa 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -726,10 +726,11 @@ options_act(or_options_t *old_options)
smartlist_t *sl = smartlist_create();
char *errmsg = NULL;
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);
tor_free(errmsg);
return -1;
+ }
}
set_exit_redirects(sl);
}