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)
This commit is contained in:
Todd Short 2018-01-31 16:20:52 -05:00 committed by Matt Caswell
parent 9d75dce3e1
commit 88834998dd

View file

@ -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;