From 0421e14c2119358e7eddd5a2a8d04501b5ce246a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 25 Oct 2007 03:29:11 +0000 Subject: r16130@catbus: nickm | 2007-10-24 23:28:00 -0400 Fix null-pointer dereference in set_current_consensus. svn:r12174 --- src/or/networkstatus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or') 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(); -- cgit v1.2.3