From: Shane Lontis Date: Tue, 11 Aug 2020 06:23:28 +0000 (+1000) Subject: Fix coverity CID #1458648 - Wrong sizeof() arg in rsa_freectx() X-Git-Tag: openssl-3.0.0-alpha7~504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26c5ea8f6168bba5c0879ac7b9bc62ed4e8d469c;p=thirdparty%2Fopenssl.git Fix coverity CID #1458648 - Wrong sizeof() arg in rsa_freectx() Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/12628) --- diff --git a/providers/implementations/signature/rsa.c b/providers/implementations/signature/rsa.c index 05c47dfb650..1f1aab2c301 100644 --- a/providers/implementations/signature/rsa.c +++ b/providers/implementations/signature/rsa.c @@ -839,7 +839,7 @@ static void rsa_freectx(void *vprsactx) OPENSSL_free(prsactx->propq); free_tbuf(prsactx); - OPENSSL_clear_free(prsactx, sizeof(prsactx)); + OPENSSL_clear_free(prsactx, sizeof(*prsactx)); } static void *rsa_dupctx(void *vprsactx)