From 2da561c2a17b6d32cd24fc73956536905343ce3f Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 5 Feb 2009 18:00:28 +0000 Subject: [PATCH] - Moved debug message in ssl_free() before clearing of ssl context --- library/ssl_tls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 93d5b56e6e..def073b86a 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -2050,9 +2050,10 @@ void ssl_free( ssl_context *ssl ) ssl->hostname_len = 0; } - memset( ssl, 0, sizeof( ssl_context ) ); - SSL_DEBUG_MSG( 2, ( "<= free" ) ); + + /* Actually free after last debug message */ + memset( ssl, 0, sizeof( ssl_context ) ); } #endif