projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f134bd0
)
Properly initialize buffers.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 13 Apr 2014 10:09:48 +0000
(12:09 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 13 Apr 2014 10:09:48 +0000
(12:09 +0200)
Valgrind complained about use of uninitialized data.
src/sptps_speed.c
patch
|
blob
|
history
diff --git
a/src/sptps_speed.c
b/src/sptps_speed.c
index
268e6c9
..
d9776b7
100644
(file)
--- 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);