diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 8fbb2c2501..4575eeecc0 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -1009,6 +1009,9 @@ void ssl3_clear(SSL *s) rp=s->s3->rbuf.buf; wp=s->s3->wbuf.buf; + EVP_MD_CTX_cleanup(&s->s3->finish_dgst1); + EVP_MD_CTX_cleanup(&s->s3->finish_dgst2); + memset(s->s3,0,sizeof *s->s3); if (rp != NULL) s->s3->rbuf.buf=rp; if (wp != NULL) s->s3->wbuf.buf=wp; |