From 935e3dd063c0ea2d06e99db583b90c2aceca2b43 Mon Sep 17 00:00:00 2001 From: ~hatteb-mitlyd Date: Thu, 15 May 2014 12:55:30 -0700 Subject: [PATCH] SSL palliative --- v/cttp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/v/cttp.c b/v/cttp.c index c6cc98da9e..f1132aa320 100644 --- a/v/cttp.c +++ b/v/cttp.c @@ -736,7 +736,16 @@ _cttp_ccon_waste(u2_ccon* coc_u, c3_c* msg_c) coc_u->nex_u->pre_u = coc_u->pre_u; } if ( coc_u->ssl.ssl_u ) { - SSL_free(coc_u->ssl.ssl_u); + SSL_free(coc_u->ssl.ssl_u); + coc_u->ssl.ssl_u = 0; + } + if ( coc_u->ssl.rio_u ) { + BIO_free(coc_u->ssl.rio_u); + coc_u->ssl.rio_u = 0; + } + if ( coc_u->ssl.wio_u ) { + BIO_free(coc_u->ssl.wio_u); + coc_u->ssl.wio_u = 0; } free(coc_u); }