summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r--src/lib/libssl/s3_lib.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index 356f43a356..091713d12a 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.175 2018/11/08 20:55:18 jsing Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.176 2018/11/08 22:28:52 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1567,8 +1567,7 @@ ssl3_free(SSL *s)
1567 1567
1568 sk_X509_NAME_pop_free(S3I(s)->tmp.ca_names, X509_NAME_free); 1568 sk_X509_NAME_pop_free(S3I(s)->tmp.ca_names, X509_NAME_free);
1569 1569
1570 BIO_free(S3I(s)->handshake_buffer); 1570 tls1_transcript_free(s);
1571
1572 tls1_handshake_hash_free(s); 1571 tls1_handshake_hash_free(s);
1573 1572
1574 free(S3I(s)->alpn_selected); 1573 free(S3I(s)->alpn_selected);
@@ -1602,9 +1601,7 @@ ssl3_clear(SSL *s)
1602 rlen = S3I(s)->rbuf.len; 1601 rlen = S3I(s)->rbuf.len;
1603 wlen = S3I(s)->wbuf.len; 1602 wlen = S3I(s)->wbuf.len;
1604 1603
1605 BIO_free(S3I(s)->handshake_buffer); 1604 tls1_transcript_free(s);
1606 S3I(s)->handshake_buffer = NULL;
1607
1608 tls1_handshake_hash_free(s); 1605 tls1_handshake_hash_free(s);
1609 1606
1610 free(S3I(s)->alpn_selected); 1607 free(S3I(s)->alpn_selected);