瀏覽代碼

r16130@catbus: nickm | 2007-10-24 23:28:00 -0400
Fix null-pointer dereference in set_current_consensus.


svn:r12174

Nick Mathewson 17 年之前
父節點
當前提交
0421e14c21
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/or/networkstatus.c

+ 2 - 1
src/or/networkstatus.c

@@ -1301,7 +1301,8 @@ networkstatus_set_current_consensus(const char *consensus, int from_cache,
   }
   }
 
 
   if (dirserver_mode(get_options()))
   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();
   router_dir_info_changed();