From: Guus Sliepen Date: Sun, 13 Apr 2014 10:09:48 +0000 (+0200) Subject: Properly initialize buffers. X-Git-Tag: release-1.1pre11~127 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=37b729d7fdd49da5466696f7995a96ebb54fbcbb;p=tinc Properly initialize buffers. Valgrind complained about use of uninitialized data. --- diff --git a/src/sptps_speed.c b/src/sptps_speed.c index 268e6c9b..d9776b7e 100644 --- a/src/sptps_speed.c +++ b/src/sptps_speed.c @@ -82,6 +82,10 @@ int main(int argc, char *argv[]) { crypto_init(); + randomize(buf1, sizeof buf1); + randomize(buf2, sizeof buf2); + randomize(buf3, sizeof buf3); + // Key generation fprintf(stderr, "Generating keys for %lg seconds: ", duration);