Browse Source

test: Fix coverity CID 1439131

Simple uninitialized object that we could free in an HS v3 unit test.

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet 5 years ago
parent
commit
58d74ad943
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/test/test_hs_descriptor.c

+ 2 - 0
src/test/test_hs_descriptor.c

@@ -675,6 +675,8 @@ test_decode_bad_signature(void *arg)
 
   (void) arg;
 
+  memset(&desc_plaintext, 0, sizeof(desc_plaintext));
+
   /* Update approx time to dodge cert expiration */
   update_approx_time(1502661599);