mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Prevent unlikely NULL dereference
This commit is contained in:
@ -3583,6 +3583,7 @@ static ssl_key_cert *ssl_add_key_cert( ssl_context *ssl )
|
|||||||
if( ssl->key_cert == NULL )
|
if( ssl->key_cert == NULL )
|
||||||
{
|
{
|
||||||
ssl->key_cert = key_cert;
|
ssl->key_cert = key_cert;
|
||||||
|
if( ssl->handshake != NULL )
|
||||||
ssl->handshake->key_cert = key_cert;
|
ssl->handshake->key_cert = key_cert;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user