[or-cvs] fix a seg fault with exitredirect

Roger Dingledine arma at seul.org
Sun Oct 17 04:44:04 UTC 2004


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

Modified Files:
	config.c 
Log Message:
fix a seg fault with exitredirect


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -d -r1.180 -r1.181
--- config.c	17 Oct 2004 03:38:02 -0000	1.180
+++ config.c	17 Oct 2004 04:44:02 -0000	1.181
@@ -1094,6 +1094,7 @@
   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) {



More information about the tor-commits mailing list