[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Attempt to un-confuse coverity about (false) double-free in bench_onion_ntor.
commit 459c7c0e41f8c35c95e6012febb7e0456cce674a
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits