summaryrefslogtreecommitdiffstats
path: root/engines/e_padlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'engines/e_padlock.c')
-rw-r--r--engines/e_padlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/e_padlock.c b/engines/e_padlock.c
index 96e7483729..f474f50ca7 100644
--- a/engines/e_padlock.c
+++ b/engines/e_padlock.c
@@ -776,7 +776,7 @@ static int padlock_rand_bytes(unsigned char *output, int count)
*output++ = (unsigned char)buf;
count--;
}
- *(volatile unsigned int *)&buf = 0;
+ OPENSSL_cleanse(&buf, sizeof(buf));
return 1;
}