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-07-16 14:47:04 +02:00
2020-04-23 13:55:52 +01:00
2020-09-10 09:50:56 +02:00
2019-10-10 14:12:15 +02:00
2020-04-23 13:55:52 +01:00
2020-08-29 17:40:11 +10:00
2019-09-28 20:26:35 +02:00
2020-09-07 18:06:45 +10:00
2020-08-09 17:34:52 +10:00
2020-07-24 22:53:27 +10:00
2020-09-10 11:35:42 +02:00
2020-08-29 17:40:11 +10:00
2020-04-23 13:55:52 +01:00
2019-11-12 13:30:35 +01:00
2019-10-10 14:12:15 +02:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-09-08 09:14:05 +03:00
2020-09-10 09:50:56 +02:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-09-10 09:50:56 +02:00
2020-04-23 13:55:52 +01:00
2020-08-29 17:40:11 +10:00
2020-08-07 14:29:00 +10:00
2019-12-18 14:46:01 +10:00
2019-10-10 14:12:15 +02:00
2020-09-03 17:48:32 +02:00
2020-06-04 14:33:57 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2019-09-28 20:26:36 +02:00
2020-04-23 13:55:52 +01:00
2019-12-11 19:04:01 +01:00
2020-08-26 14:04:11 +03:00
2020-04-23 13:55:52 +01:00
2020-06-04 14:33:57 +01:00
2020-07-29 17:31:32 +10:00
2019-09-28 20:26:34 +02:00
2020-06-22 02:35:01 +02:00
2020-04-28 15:37:37 +02:00
2020-07-16 14:47:04 +02:00
2020-04-23 13:55:52 +01:00
2019-09-28 20:26:36 +02:00
2020-05-15 14:09:49 +01:00
2020-04-23 13:55:52 +01:00
2020-08-26 14:04:11 +03:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-05-15 14:09:49 +01:00
2020-04-23 13:55:52 +01:00
2020-07-16 14:47:04 +02:00
2019-07-01 13:32:46 -04:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00