|
@@ -1893,11 +1893,12 @@ networkstatus_note_certs_arrived(void)
|
|
if (!waiting->consensus)
|
|
if (!waiting->consensus)
|
|
continue;
|
|
continue;
|
|
if (networkstatus_check_consensus_signature(waiting->consensus, 0)>=0) {
|
|
if (networkstatus_check_consensus_signature(waiting->consensus, 0)>=0) {
|
|
|
|
+ char *waiting_body = waiting->body;
|
|
if (!networkstatus_set_current_consensus(
|
|
if (!networkstatus_set_current_consensus(
|
|
- waiting->body,
|
|
|
|
|
|
+ waiting_body,
|
|
networkstatus_get_flavor_name(i),
|
|
networkstatus_get_flavor_name(i),
|
|
NSSET_WAS_WAITING_FOR_CERTS)) {
|
|
NSSET_WAS_WAITING_FOR_CERTS)) {
|
|
- tor_free(waiting->body);
|
|
|
|
|
|
+ tor_free(waiting_body);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|