[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] make options->RedirectExit work again; resolve bug 293.



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	config.c 
Log Message:
make options->RedirectExit work again; resolve bug 293.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.561
retrieving revision 1.562
diff -u -p -d -r1.561 -r1.562
--- config.c	23 May 2006 07:04:55 -0000	1.561
+++ config.c	24 May 2006 11:13:03 -0000	1.562
@@ -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);
   }