aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/stack
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/stack')
-rw-r--r--openssl/crypto/stack/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/crypto/stack/stack.c b/openssl/crypto/stack/stack.c
index 47457c722..de437acf6 100644
--- a/openssl/crypto/stack/stack.c
+++ b/openssl/crypto/stack/stack.c
@@ -312,7 +312,7 @@ void sk_zero(_STACK *st)
return;
if (st->num <= 0)
return;
- memset((char *)st->data, 0, sizeof(st->data) * st->num);
+ memset((char *)st->data, 0, sizeof(*st->data) * st->num);
st->num = 0;
}