summaryrefslogtreecommitdiffstats
path: root/providers/implementations/ciphers/cipher_chacha20.c
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-10-20 13:10:38 +0200
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-10-20 23:58:05 +0200
commit5e58733b23fd33f526fb95ae636daf7ebf023359 (patch)
tree9faa6cfc07068fc4181d884108844a7e8510843f /providers/implementations/ciphers/cipher_chacha20.c
parentde1581988f4a6b6e25f1e01474c63dc55f004c2a (diff)
ciphers/chacha20,poly1303: Fix two coverity errors
CID 1454872, 1454873: Incorrect expression (SIZEOF_MISMATCH) Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10223)
Diffstat (limited to 'providers/implementations/ciphers/cipher_chacha20.c')
-rw-r--r--providers/implementations/ciphers/cipher_chacha20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/ciphers/cipher_chacha20.c b/providers/implementations/ciphers/cipher_chacha20.c
index 7cc57e7043..d92fa08d0c 100644
--- a/providers/implementations/ciphers/cipher_chacha20.c
+++ b/providers/implementations/ciphers/cipher_chacha20.c
@@ -55,7 +55,7 @@ static void chacha20_freectx(void *vctx)
PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx;
if (ctx != NULL) {
- OPENSSL_clear_free(ctx, sizeof(ctx));
+ OPENSSL_clear_free(ctx, sizeof(*ctx));
}
}