mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-13 05:06:32 +00: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