Fix coverity CID #1458648 - Wrong sizeof() arg in rsa_freectx()
authorShane Lontis <shane.lontis@oracle.com>
Tue, 11 Aug 2020 06:23:28 +0000 (16:23 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Mon, 24 Aug 2020 01:19:28 +0000 (11:19 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12628)

providers/implementations/signature/rsa.c

index 05c47dfb6500c1191ea16295b5374f736df50311..1f1aab2c301204ce7c21f11dffa7ac31887fc2f6 100644 (file)
@@ -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)