summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ssl/ssl_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 35758df33b..440d156975 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -1361,13 +1361,13 @@ void ossl_ssl_connection_free(SSL *ssl)
/* Ignore return value */
ssl_free_wbio_buffer(s);
+ RECORD_LAYER_clear(&s->rlayer);
+
BIO_free_all(s->wbio);
s->wbio = NULL;
BIO_free_all(s->rbio);
s->rbio = NULL;
- RECORD_LAYER_clear(&s->rlayer);
-
BUF_MEM_free(s->init_buf);
/* add extra stuff */