Browse Source

Attempt to un-confuse coverity about (false) double-free in bench_onion_ntor.

Nick Mathewson 11 years ago
parent
commit
459c7c0e41
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/test/bench.c

+ 1 - 0
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);