]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a seg fault with exitredirect
authorRoger Dingledine <arma@torproject.org>
Sun, 17 Oct 2004 04:44:02 +0000 (04:44 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 17 Oct 2004 04:44:02 +0000 (04:44 +0000)
svn:r2555

src/or/config.c

index 9ea398783a774d49504b6b3a9a389d15cfe9261d..f50bd42f98de5e2a39582b9d240781171cec252a 100644 (file)
@@ -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) {