mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 17:45:38 +01:00
Fixed possible NULL pointer exception in ssl_get_ciphersuite()
This commit is contained in:
parent
8804f69d46
commit
926c8e49fe
@ -3482,6 +3482,9 @@ int ssl_get_ciphersuite_id( const char *ciphersuite_name )
|
||||
|
||||
const char *ssl_get_ciphersuite( const ssl_context *ssl )
|
||||
{
|
||||
if( ssl == NULL || ssl->session == NULL )
|
||||
return NULL;
|
||||
|
||||
return ssl_get_ciphersuite_name( ssl->session->ciphersuite );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user