summaryrefslogtreecommitdiffstats
path: root/crypto/ffc
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-02-16 09:02:38 +0100
committerPauli <paul.dale@oracle.com>2020-02-17 10:29:05 +0100
commit86cde3187d9acf6f331daff79ff2de87e86c6dc7 (patch)
treec8da1c3a7f97f6243e65608eaaa6acd94bf59093 /crypto/ffc
parentCoverity 1458438: fix uninitialised memory access. (diff)
downloadopenssl-86cde3187d9acf6f331daff79ff2de87e86c6dc7.tar.xz
openssl-86cde3187d9acf6f331daff79ff2de87e86c6dc7.zip
ffc: use sizeof(*pointer) instead of sizeof(struct) in memset(3) call.
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11101)
Diffstat (limited to 'crypto/ffc')
-rw-r--r--crypto/ffc/ffc_params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ffc/ffc_params.c b/crypto/ffc/ffc_params.c
index 0c9d1a5d39..cb8987b64d 100644
--- a/crypto/ffc/ffc_params.c
+++ b/crypto/ffc/ffc_params.c
@@ -15,7 +15,7 @@
void ffc_params_init(FFC_PARAMS *params)
{
- memset(params, 0, sizeof(FFC_PARAMS));
+ memset(params, 0, sizeof(*params));
params->pcounter = -1;
params->gindex = FFC_UNVERIFIABLE_GINDEX;
}