Avoid segfault when reading state file from ancient tor

If s_values is null in rep_hist_load_bwhist_state_section, we would
call smartlist_len() on it, and die.

Fixes bug 6801.
This commit is contained in:
Nick Mathewson
2012-09-10 10:35:18 -04:00
parent 97dbff51e6
commit 8731a4e148
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor bugfixes:
- Avoid segfault when starting up having run with an extremely old
version of Tor and parsing its state file. Fixes bug 6801; bugfix on
0.2.2.23-alpha.