diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-12 21:09:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-12 21:32:42 -0400 |
commit | 4ff170d7b1cbe4074cb85271b82a8963eccc8286 (patch) | |
tree | 459640c64a49ee1342338647cd67570cac605516 /src/test/test_shared_random.c | |
parent | 491b6de1684e519d1fec870a5b46a4bb540cbc13 (diff) | |
download | tor-4ff170d7b1cbe4074cb85271b82a8963eccc8286.tar.gz tor-4ff170d7b1cbe4074cb85271b82a8963eccc8286.zip |
Fix warnings about passing uninitialized buffers into functions
Most of these buffers were never actually inspected, but it's still
bad style.
Diffstat (limited to 'src/test/test_shared_random.c')
-rw-r--r-- | src/test/test_shared_random.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 4c303cbb35..a9d58e6b8b 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -1231,6 +1231,8 @@ test_keep_commit(void *arg) state = get_sr_state(); } + crypto_rand((char*)fp, sizeof(fp)); + /* Test this very important function that tells us if we should keep a * commit or not in our state. Most of it depends on the phase and what's * in the commit so we'll change the commit as we go. */ |