mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 07:29:02 +00:00
Fixed possible NULL pointer exception in ssl_get_ciphersuite()
This commit is contained in:
parent
8804f69d46
commit
926c8e49fe
1 changed files with 3 additions and 0 deletions
|
@ -3482,6 +3482,9 @@ int ssl_get_ciphersuite_id( const char *ciphersuite_name )
|
||||||
|
|
||||||
const char *ssl_get_ciphersuite( const ssl_context *ssl )
|
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 );
|
return ssl_get_ciphersuite_name( ssl->session->ciphersuite );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue