diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-18 11:33:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-18 11:33:15 -0400 |
commit | 459c7c0e41f8c35c95e6012febb7e0456cce674a (patch) | |
tree | d11b176a69d4a7045b72f4a864ff7473d1429f1c /src/test/bench.c | |
parent | 9f8e672b50e07dcdfee1ba74e7f44570edaf0fe2 (diff) | |
download | tor-459c7c0e41f8c35c95e6012febb7e0456cce674a.tar.gz tor-459c7c0e41f8c35c95e6012febb7e0456cce674a.zip |
Attempt to un-confuse coverity about (false) double-free in bench_onion_ntor.
Diffstat (limited to 'src/test/bench.c')
-rw-r--r-- | src/test/bench.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/bench.c b/src/test/bench.c index 5a8d21d173..97a7909fc9 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); |