[tor/master] Attempt to un-confuse coverity about (false) double-free in bench_onion_ntor.

18 Jun
2013
18 Jun
'13
4:31 p.m.
commit 459c7c0e41f8c35c95e6012febb7e0456cce674a Author: Nick Mathewson <nickm@torproject.org> Date: Tue Jun 18 11:33:15 2013 -0400 Attempt to un-confuse coverity about (false) double-free in bench_onion_ntor. --- src/test/bench.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/bench.c b/src/test/bench.c index 5a8d21d..97a7909 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -204,6 +204,7 @@ bench_onion_ntor(void) for (i = 0; i < iters; ++i) { onion_skin_ntor_create(nodeid, &keypair1.pubkey, &state, os); ntor_handshake_state_free(state); + state = NULL; } end = perftime(); printf("Client-side, part 1: %f usec.\n", NANOCOUNT(start, end, iters)/1e3);
4390
Age (days ago)
4390
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org