]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r13987@Kushana: nickm | 2007-08-13 16:17:09 -0400
authorNick Mathewson <nickm@torproject.org>
Mon, 13 Aug 2007 20:17:14 +0000 (20:17 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Aug 2007 20:17:14 +0000 (20:17 +0000)
 Stop segfaulting on failed consensus.

svn:r11090

src/or/dirvote.c

index b7aa3872cac90efbad00fbdba286a332538f0c18..dd8bc7aa0835e64334e1ecbd6445ef716bc22615 100644 (file)
@@ -1276,7 +1276,10 @@ dirvote_compute_consensus(void)
         votes, n_voters,
         my_cert->identity_key,
         get_my_v3_authority_signing_key());
-
+  if (!consensus_body) {
+    log_warn(LD_DIR, "Couldn't generate a consensus at all!");
+    goto err;
+  }
   consensus = networkstatus_parse_vote_from_string(consensus_body, 0);
   if (!consensus) {
     log_warn(LD_DIR, "Couldn't parse consensus we generated!");