Matt Caswell 3101ab603c Fix an EVP_MD_CTX leak
If we initialise an EVP_MD_CTX with a legacy MD, and then reuse the same
EVP_MD_CTX with a provided MD then we end up leaking the md_data.

We need to ensure we free the md_data if we change to a provided MD.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12779)
2020-09-10 11:35:42 +02:00
..
2020-04-23 13:55:52 +01:00
2020-08-11 20:39:19 +10:00
2020-08-21 15:18:20 +02:00
2020-05-04 09:30:55 +01:00
2020-09-10 11:35:42 +02:00
2020-04-23 13:55:52 +01:00
2020-08-09 17:34:52 +10:00
2020-08-26 14:04:11 +03:00
2020-08-21 15:18:20 +02:00
2020-08-06 13:22:30 +01:00
2020-07-24 22:53:27 +10:00