From c6bec6ef0db25eddb6dd292332cb2c298af055e4 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 16 Oct 2009 15:24:07 +0000 Subject: [PATCH] PR: 2072 Submitted by: Tomas Mraz Approved by: steve@openssl.org Avoid potential doublefree and reuse of freed handshake_buffer. --- ssl/s3_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 7aa1c037b2..d6b047c995 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -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); -- 2.25.1