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 )
|
||||
{
|
||||
if( ssl == NULL || ssl->session == NULL )
|
||||
return NULL;
|
||||
|
||||
return ssl_get_ciphersuite_name( ssl->session->ciphersuite );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue