summary refs log tree commit diff stats
path: root/plugins/fishlim
diff options
context:
space:
mode:
authorIgor <f2404@yandex.ru>2016-10-11 12:59:34 +0300
committerPatrick Griffis <tingping@tingping.se>2016-10-11 09:58:06 -0400
commitc0aa47c7a18dbcdf1a2900f251466fdd9c9c4f18 (patch)
tree41d15302f52cc8cb640ec2816fb8468fd172218b /plugins/fishlim
parentf38261f666a2e41bbd189940ca7d419b3e726376 (diff)
fishlim: Fix MEMZERO macro using element number not bytes
Closes #1837
Diffstat (limited to 'plugins/fishlim')
-rw-r--r--plugins/fishlim/dh1080.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/fishlim/dh1080.c b/plugins/fishlim/dh1080.c
index 41b65844..5afb1c63 100644
--- a/plugins/fishlim/dh1080.c
+++ b/plugins/fishlim/dh1080.c
@@ -39,7 +39,7 @@
 #define DH1080_PRIME_BYTES 135
 #define SHA256_DIGEST_LENGTH 32
 #define B64ABC "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
-#define MEMZERO(x) memset(x, 0x00, (sizeof(x)/sizeof(*x)) )
+#define MEMZERO(x) memset(x, 0x00, sizeof(x))
 
 /* All clients must use the same prime number to be able to keyx */
 static const guchar prime1080[DH1080_PRIME_BYTES] =