|
@@ -617,26 +617,24 @@ disk_state_update(void)
|
|
|
|
|
|
disk_state_reset();
|
|
disk_state_reset();
|
|
|
|
|
|
-
|
|
+
|
|
- * construct something. */
|
|
|
|
sr_disk_state->Version = sr_state->version;
|
|
sr_disk_state->Version = sr_state->version;
|
|
sr_disk_state->ValidUntil = sr_state->valid_until;
|
|
sr_disk_state->ValidUntil = sr_state->valid_until;
|
|
sr_disk_state->ValidAfter = sr_state->valid_after;
|
|
sr_disk_state->ValidAfter = sr_state->valid_after;
|
|
|
|
|
|
|
|
|
|
next = &sr_disk_state->SharedRandValues;
|
|
next = &sr_disk_state->SharedRandValues;
|
|
- *next = NULL;
|
|
|
|
if (sr_state->previous_srv != NULL) {
|
|
if (sr_state->previous_srv != NULL) {
|
|
*next = line = tor_malloc_zero(sizeof(config_line_t));
|
|
*next = line = tor_malloc_zero(sizeof(config_line_t));
|
|
line->key = tor_strdup(dstate_prev_srv_key);
|
|
line->key = tor_strdup(dstate_prev_srv_key);
|
|
disk_state_put_srv_line(sr_state->previous_srv, line);
|
|
disk_state_put_srv_line(sr_state->previous_srv, line);
|
|
|
|
+
|
|
next = &(line->next);
|
|
next = &(line->next);
|
|
}
|
|
}
|
|
if (sr_state->current_srv != NULL) {
|
|
if (sr_state->current_srv != NULL) {
|
|
*next = line = tor_malloc_zero(sizeof(*line));
|
|
*next = line = tor_malloc_zero(sizeof(*line));
|
|
line->key = tor_strdup(dstate_cur_srv_key);
|
|
line->key = tor_strdup(dstate_cur_srv_key);
|
|
disk_state_put_srv_line(sr_state->current_srv, line);
|
|
disk_state_put_srv_line(sr_state->current_srv, line);
|
|
- next = &(line->next);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|