mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
- Fixed bug resulting in failure to send the last certificate in the chain in ssl_write_certificate() and ssl_write_certificate_request()
This commit is contained in:
@ -1160,7 +1160,7 @@ int ssl_write_certificate( ssl_context *ssl )
|
||||
i = 7;
|
||||
crt = ssl->own_cert;
|
||||
|
||||
while( crt != NULL && crt->next != NULL )
|
||||
while( crt != NULL && crt->version != 0 )
|
||||
{
|
||||
n = crt->raw.len;
|
||||
if( i + 3 + n > SSL_MAX_CONTENT_LEN )
|
||||
|
Reference in New Issue
Block a user