Prevent unlikely NULL dereference
This commit is contained in:
parent
911807284d
commit
08b028ff0f
1 changed files with 2 additions and 1 deletions
|
@ -3583,7 +3583,8 @@ 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;
|
||||||
ssl->handshake->key_cert = key_cert;
|
if( ssl->handshake != NULL )
|
||||||
|
ssl->handshake->key_cert = key_cert;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue