summaryrefslogtreecommitdiffstats
path: root/ssl/s3_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-06-20 15:44:03 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-06-21 15:29:22 +0100
commitd480e182fe20fcaeca7817a4693eeaf594bb1a32 (patch)
treeae741c887fb6f7ed83acc23285b992429eaec70f /ssl/s3_lib.c
parent85fb6fdaed74d6091817ce5da17fcc737f36a51f (diff)
Avoid duplication.
We always free the handshake buffer when digests are freed so move it into ssl_free_digest_list() Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r--ssl/s3_lib.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 03078016e6..36b5f0d3ab 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -2905,7 +2905,6 @@ void ssl3_free(SSL *s)
OPENSSL_free(s->s3->tmp.ciphers_raw);
OPENSSL_clear_free(s->s3->tmp.pms, s->s3->tmp.pmslen);
OPENSSL_free(s->s3->tmp.peer_sigalgs);
- BIO_free(s->s3->handshake_buffer);
ssl3_free_digest_list(s);
OPENSSL_free(s->s3->alpn_selected);
@@ -2940,8 +2939,6 @@ void ssl3_clear(SSL *s)
#endif /* !OPENSSL_NO_EC */
init_extra = s->s3->init_extra;
- BIO_free(s->s3->handshake_buffer);
- s->s3->handshake_buffer = NULL;
ssl3_free_digest_list(s);
if (s->s3->alpn_selected) {