Only iterate over actual certificates in ssl_write_certificate_request()

This commit is contained in:
Paul Bakker 2014-04-18 13:47:38 +02:00
parent f4cf80b86f
commit c70e425a73

View File

@ -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;