PR: 2072
Submitted by: Tomas Mraz <tmraz@redhat.com> Approved by: steve@openssl.org Avoid potential doublefree and reuse of freed handshake_buffer.
This commit is contained in:
parent
7c3908dd19
commit
c6bec6ef0d
1 changed files with 1 additions and 0 deletions
|
@ -2211,6 +2211,7 @@ void ssl3_clear(SSL *s)
|
|||
wlen = s->s3->wbuf.len;
|
||||
if (s->s3->handshake_buffer) {
|
||||
BIO_free(s->s3->handshake_buffer);
|
||||
s->s3->handshake_buffer = NULL;
|
||||
}
|
||||
if (s->s3->handshake_dgst) {
|
||||
ssl3_free_digest_list(s);
|
||||
|
|
Loading…
Reference in a new issue