diff options
author | Todd Short <tshort@akamai.com> | 2018-01-31 16:20:52 -0500 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-02-01 17:07:56 +0000 |
commit | 88834998dda00a713abe3a17d6caebba2f70318d (patch) | |
tree | eec14f5f2f421a36ac07cb6c796127f36d71aca9 | |
parent | 9d75dce3e1f94be6006500089491cb3284f70d06 (diff) |
Free pha_dgst in SSL_clear()
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4964)
-rw-r--r-- | ssl/ssl_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 5a5fbad1f6..68a9b19087 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -614,6 +614,9 @@ int SSL_clear(SSL *s) s->key_update = SSL_KEY_UPDATE_NONE; + EVP_MD_CTX_free(s->pha_dgst); + s->pha_dgst = NULL; + /* Reset DANE verification result state */ s->dane.mdpth = -1; s->dane.pdpth = -1; |