tor_assert(cfx->prev_leg);
tor_assert(cfx->curr_leg);
- uint64_t relative_seq = cfx->prev_leg->last_seq_sent -
- cfx->curr_leg->last_seq_sent;
-
if (cfx->curr_leg->last_seq_sent > cfx->prev_leg->last_seq_sent) {
/* Having incoherent sequence numbers, log warn about it but rate limit
* it to every hour so we avoid redundent report. */
return NULL;
}
+ uint64_t relative_seq = cfx->prev_leg->last_seq_sent -
+ cfx->curr_leg->last_seq_sent;
+
/* On failure to send the SWITCH, we close everything. This means we have
* a protocol error or the sending failed and the circuit is closed. */
if (!conflux_send_switch_command(cfx->curr_leg->circ, relative_seq)) {