mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Only iterate over actual certificates in ssl_write_certificate_request()
This commit is contained in:
@ -2073,7 +2073,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
|
||||
crt = ssl->ca_chain;
|
||||
|
||||
total_dn_size = 0;
|
||||
while( crt != NULL )
|
||||
while( crt != NULL && crt->version != 0 )
|
||||
{
|
||||
if( p - buf > 4096 )
|
||||
break;
|
||||
|
Reference in New Issue
Block a user