]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove 'struct timeval now' that was shadowing 'struct timeval now'.
authorNick Mathewson <nickm@torproject.org>
Mon, 18 Nov 2013 16:20:35 +0000 (11:20 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 18 Nov 2013 16:20:35 +0000 (11:20 -0500)
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.

src/or/relay.c

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