diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-25 03:29:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-25 03:29:11 +0000 |
commit | 0421e14c2119358e7eddd5a2a8d04501b5ce246a (patch) | |
tree | d15dc06730b77e4bbfe855fefcbbddcadec822ed /src/or | |
parent | 4c7a2eae0cd0fe473365da89fe440615e6594cfd (diff) | |
download | tor-0421e14c2119358e7eddd5a2a8d04501b5ce246a.tar tor-0421e14c2119358e7eddd5a2a8d04501b5ce246a.tar.gz |
r16130@catbus: nickm | 2007-10-24 23:28:00 -0400
Fix null-pointer dereference in set_current_consensus.
svn:r12174
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/networkstatus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index e3899b75f..0a4006abe 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1301,7 +1301,8 @@ networkstatus_set_current_consensus(const char *consensus, int from_cache, } if (dirserver_mode(get_options())) - dirserv_set_cached_networkstatus_v3(consensus, c->valid_after); + dirserv_set_cached_networkstatus_v3(consensus, + current_consensus->valid_after); router_dir_info_changed(); |