mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 10:54:25 +01:00
Handshake key_cert should be set on first addition to the key_cert chain
This commit is contained in:
parent
e1121b6217
commit
0333b978fa
@ -3581,7 +3581,10 @@ static ssl_key_cert *ssl_add_key_cert( ssl_context *ssl )
|
|||||||
|
|
||||||
/* Append the new key_cert to the (possibly empty) current list */
|
/* Append the new key_cert to the (possibly empty) current list */
|
||||||
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;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
last = ssl->key_cert;
|
last = ssl->key_cert;
|
||||||
|
Loading…
Reference in New Issue
Block a user