cached_dir_decref(*ns_ptr);
*ns_ptr = new_cached_dir(status, now);
status = NULL; /* So it doesn't get double-freed. */
- router_set_networkstatus((*ns_ptr)->dir, now, NS_GENERATED, NULL);
}
return the_v3_networkstatus_vote;
dist_delay = consensus->dist_seconds;
} else {
/* XXXX020 is this correct according the the spec? */
- interval = 3600;
+ /* XXXX020 drop this back down to 60 minutes, or whatever the spec says. */
+ interval = 1200;
vote_delay = dist_delay = 300;
}
pending_vote_t *pending_vote;
const char *msg = "";
- if ((pending_vote = dirvote_add_vote(new_vote->dir, &msg))) {
+ if (!new_vote)
+ return;
+
+ if (!(pending_vote = dirvote_add_vote(new_vote->dir, &msg))) {
log_warn(LD_DIR, "Couldn't store my own vote! (I told myself, '%s'.)",
msg);
return;