mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-02 06:57:24 +00:00
- Moved debug message in ssl_free() before clearing of ssl context
This commit is contained in:
+3
-2
@@ -2050,9 +2050,10 @@ void ssl_free( ssl_context *ssl )
|
|||||||
ssl->hostname_len = 0;
|
ssl->hostname_len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset( ssl, 0, sizeof( ssl_context ) );
|
|
||||||
|
|
||||||
SSL_DEBUG_MSG( 2, ( "<= free" ) );
|
SSL_DEBUG_MSG( 2, ( "<= free" ) );
|
||||||
|
|
||||||
|
/* Actually free after last debug message */
|
||||||
|
memset( ssl, 0, sizeof( ssl_context ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user