Pārlūkot izejas kodu

Remove 'struct timeval now' that was shadowing 'struct timeval now'.

This was a mistake in the merge commit 7a2b30fe16eacc040b3dd11. It
would have made the CellStatistics code give completely bogus
results. Bug not in any released Tor.
Nick Mathewson 12 gadi atpakaļ
vecāks
revīzija
bd25bda7c0
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. 0 1
      src/or/relay.c

+ 0 - 1
src/or/relay.c

@@ -2222,7 +2222,6 @@ cell_queue_append_packed_copy(circuit_t *circ, cell_queue_t *queue,
   /*XXXX This may be obsoleted by inserted_time */
   /*XXXX This may be obsoleted by inserted_time */
   if ((get_options()->CellStatistics ||
   if ((get_options()->CellStatistics ||
       get_options()->TestingEnableCellStatsEvent) && use_stats) {
       get_options()->TestingEnableCellStatsEvent) && use_stats) {
-    struct timeval now;
     uint32_t added;
     uint32_t added;
     insertion_time_queue_t *it_queue = queue->insertion_times;
     insertion_time_queue_t *it_queue = queue->insertion_times;
     if (!it_pool)
     if (!it_pool)